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.143 -- Release Build+6200516e1d8796210682e4fa5670553a73472309
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