MeasurementClone(IMeasurement, Double, Ticks, MeasurementStateFlags, Boolean) Method

Creates a copy of the specified measurement using a new value, timestamp and state flags.

Definition

Namespace: Gemstone.Timeseries
Assembly: Gemstone.Timeseries (in Gemstone.Timeseries.dll) Version: 1.0.138 -- Release Build+b4f8847fe309a44734617722bca179874d85b46d
public static Measurement Clone(
	IMeasurement measurementToClone,
	double value,
	Ticks timestamp,
	MeasurementStateFlags stateFlags,
	bool replaceFlags = true
)

Parameters

measurementToClone  IMeasurement
Specified measurement to clone.
value  Double
New value for cloned measurement.
timestamp  Ticks
New timestamp, in ticks, for cloned measurement.
stateFlags  MeasurementStateFlags
New state flags for cloned measurement.
replaceFlags  Boolean  (Optional)
Determines if stateFlags should assigned as new (default) or be Or'd with existing flags.

Return Value

Measurement
A copy of the Measurement object.

See Also