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.163 -- Release Build+cf7cf4d3156bba09a67241b3d0a5244a44ff1c04
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