Gemstone Timeseries Library
Show/Hide TOC

# MeasurementKeyLookUpOrCreate(Guid, String, UInt64) Method

Performs a lookup by signal ID and, failing that, attempts to create the key using the given signal ID, source, and ID.

## Definition

Namespace: Gemstone.Timeseries
Assembly: Gemstone.Timeseries (in Gemstone.Timeseries.dll) Version: 1.0.176 -- Release Build+53a3c1e187e0c85f0eef5aedfa0d3ac4b99e7489
C#
View Source Request Example

    public static MeasurementKey LookUpOrCreate(
    	Guid signalID,
    	string source,
    	ulong id
    )

VB
View Source Request Example

    Public Shared Function LookUpOrCreate (
    	signalID As Guid,
    	source As String,
    	id As ULong
    ) As MeasurementKey

C++
View Source Request Example

    public:
    static MeasurementKey^ LookUpOrCreate(
    	Guid signalID,
    	String^ source,
    	unsigned long long id
    )

JavaScript
View Source Request Example

    Gemstone.Timeseries.MeasurementKey.LookUpOrCreate = function(signalID, source, id);

#### Parameters

signalID Guid
  The signal ID of the key to be looked up.
source String
  The source to use for the key if the lookup fails.
id UInt64
  The ID to use for the key if the lookup fails.

#### Return Value

MeasurementKey
If the lookup succeeds, an existing measurement key with a matching signalID. If creation succeeds, a new measurement key with matching signal ID, source, and ID. Otherwise, Undefined.

## See Also

#### Reference

MeasurementKey Class
LookUpOrCreate Overload
Gemstone.Timeseries Namespace