Click or drag to resize

MetadataHelpersLookupMeasurementKey Method

Looks up or creates measurement key based on provided signalID.

Namespace: GSF.TimeSeries.Adapters
Assembly: GSF.TimeSeries (in GSF.TimeSeries.dll) Version: 2.4.205-beta
Syntax
public static MeasurementKey LookupMeasurementKey(
	this IAdapter instance,
	Guid signalID,
	ulong id,
	string source = "PPA",
	string measurementTable = "ActiveMeasurements"
)
View Source

Parameters

instance  IAdapter
Target IAdapter instance.
signalID  Guid
Guid signal ID to lookup.
id  UInt64
Measurement ID to use for creating new measurement key.
source  String  (Optional)
Source name used for meta-data lookup.
measurementTable  String  (Optional)
Measurement table name used for meta-data lookup.

Return Value

MeasurementKey
Found or newly created measurement key. Failure to create key results in Undefined.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IAdapter. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Remarks
This is a metadata first lookup operation.
See Also