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.152 -- Release Build+b2d9dfdf9f88883db99a75176343ddd4e07a1f25
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