StandardPowerSensorCollectionLock Field

The collection lock.

Definition

Namespace: SmallEarthTech.AntPlus.DeviceProfiles.BicyclePower
Assembly: SmallEarthTech.AntPlus (in SmallEarthTech.AntPlus.dll) Version: 4.0.0.0+4009252dff1e4f6bcda36b6b0041486552134bc5
C#
public Object CollectionLock

Field Value

Object

Remarks

An application should use the collection lock to ensure thread safe access to the collection. For example, the code behind for a WPF window should include -
C#
BindingOperations.EnableCollectionSynchronization(bicyclePower.Calibration.Measurements, bicyclePower.Calibration.CollectionLock);
This ensures changes to the collection are thread safe and marshalled on the UI thread.

See Also