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.159 -- Release Build+5e229f6c17e56a080df8050499a7be13fe2cb600
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