MeasurementKeyTryCreateOrUpdate(Guid, String, UInt64, MeasurementKey) Method

Constructs a new MeasurementKey given the specified parameters.

Definition

Namespace: Gemstone.Timeseries
Assembly: Gemstone.Timeseries (in Gemstone.Timeseries.dll) Version: 1.0.155 -- Release Build+e115e0aae9dba2e478171d226b178f6065fb745f
public static bool TryCreateOrUpdate(
	Guid signalID,
	string source,
	ulong id,
	out MeasurementKey key
)

Parameters

signalID  Guid
Guid ID of associated signal, if defined.
source  String
Source of the measurement that this MeasurementKey represents (e.g., name of archive).
id  UInt64
Numeric ID of the measurement that this MeasurementKey represents.
key  MeasurementKey
The measurement key that was created or updated or Undefined.

Return Value

Boolean
True if the measurement key was successfully created or updated, false otherwise.

Exceptions

ArgumentExceptionsignalID cannot be empty.
ArgumentNullExceptionsource cannot be null.

See Also