Standard Power SensorCollection Lock Field
The collection lock.
Definition
Namespace: SmallEarthTech.AntPlus.DeviceProfiles.BicyclePower
Assembly: SmallEarthTech.AntPlus (in SmallEarthTech.AntPlus.dll) Version: 6.0.4+3bc433b476ad11fc6896cfd0bd783d60504dc315
Assembly: SmallEarthTech.AntPlus (in SmallEarthTech.AntPlus.dll) Version: 6.0.4+3bc433b476ad11fc6896cfd0bd783d60504dc315
C#
public Object CollectionLockVB
Public CollectionLock As ObjectC++
public:
Object^ CollectionLockF#
val mutable 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);