Gemstone Timeseries Library
Show/Hide TOC

# MeasurementKeyCreateOrUpdate(Guid, String) Method

Constructs a new MeasurementKey given the specified parameters.

## Definition

Namespace: Gemstone.Timeseries
Assembly: Gemstone.Timeseries (in Gemstone.Timeseries.dll) Version: 1.0.175 -- Release Build+6d9fa6c3f1ee5404e2291e24588a1610a2481c36
C#
View Source Request Example

    public static MeasurementKey CreateOrUpdate(
    	Guid signalID,
    	string value
    )

VB
View Source Request Example

    Public Shared Function CreateOrUpdate (
    	signalID As Guid,
    	value As String
    ) As MeasurementKey

C++
View Source Request Example

    public:
    static MeasurementKey^ CreateOrUpdate(
    	Guid signalID,
    	String^ value
    )

JavaScript
View Source Request Example

    Gemstone.Timeseries.MeasurementKey.CreateOrUpdate = function(signalID, value);

#### Parameters

signalID Guid
  Guid ID of associated signal, if defined.
value String
  A string representation of the MeasurementKey.

#### Return Value

MeasurementKey
A MeasurementKey object constructed from the specified parameters.

## Exceptions

ArgumentException | signalID cannot be empty
FormatException | The value is not in the correct format for a MeasurementKey value.

## See Also

#### Reference

MeasurementKey Class
CreateOrUpdate Overload
Gemstone.Timeseries Namespace