StandardPowerSensorCollectionLock Field
The collection lock.
Namespace: SmallEarthTech.AntPlus.DeviceProfiles.BicyclePowerAssembly: SmallEarthTech.AntPlus (in SmallEarthTech.AntPlus.dll) Version: 4.0.0.0+01fc5ca24e8f030354f28ec9cef320bc5cbb0ef6
public Object CollectionLock
Public CollectionLock As Object
public:
Object^ CollectionLock
val mutable CollectionLock: Object
Field Value
Object
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 -
BindingOperations.EnableCollectionSynchronization(bicyclePower.Calibration.Measurements, bicyclePower.Calibration.CollectionLock);
This ensures changes to the collection are thread safe and marshalled on the UI thread.