TrackerCollection Lock Field
The collection lock.
Definition
Namespace: SmallEarthTech.AntPlus.DeviceProfiles.AssetTracker
Assembly: SmallEarthTech.AntPlus (in SmallEarthTech.AntPlus.dll) Version: 6.1.0+bee07ae1f518f90000e3a8eef95ac61052778db9
Assembly: SmallEarthTech.AntPlus (in SmallEarthTech.AntPlus.dll) Version: 6.1.0+bee07ae1f518f90000e3a8eef95ac61052778db9
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(assetTracker.Assets, assetTracker.CollectionLock);