Standard Power SensorCollection Lock Field
The collection lock.
Definition
Namespace: SmallEarthTech.AntPlus.DeviceProfiles.BicyclePower
Assembly: SmallEarthTech.AntPlus (in SmallEarthTech.AntPlus.dll) Version: 7.0.2+fe94d33487affd796e1d786d5b5eb3d769a3361f
Assembly: SmallEarthTech.AntPlus (in SmallEarthTech.AntPlus.dll) Version: 7.0.2+fe94d33487affd796e1d786d5b5eb3d769a3361f
C#
public readonly Object CollectionLockVB
Public ReadOnly CollectionLock As ObjectC++
public:
initonly Object^ CollectionLockF#
val CollectionLock: ObjectField Value
ObjectRemarks
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 -
This ensures changes to the collection are thread safe and marshalled on the UI thread.
C#
BindingOperations.EnableCollectionSynchronization(bicyclePower.Calibration.Measurements, bicyclePower.Calibration.CollectionLock);