|
MeasurementKeyLookUpOrCreate(String, UInt64) Method
|
Performs a lookup by source and, failing that, attempts to create
the key using a newly generated signal ID and the given source and ID.
Namespace: GSF.TimeSeriesAssembly: GSF.TimeSeries (in GSF.TimeSeries.dll) Version: 2.4.248-beta
Syntaxpublic static MeasurementKey LookUpOrCreate(
string source,
ulong id
)
Public Shared Function LookUpOrCreate (
source As String,
id As ULong
) As MeasurementKey
public:
static MeasurementKey^ LookUpOrCreate(
String^ source,
unsigned long long id
)
static member LookUpOrCreate :
source : string *
id : uint64 -> MeasurementKey
GSF.TimeSeries.MeasurementKey.LookUpOrCreate = function(source, id);
View SourceParameters
- 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