TrackerCollectionLock Field
The collection lock.
Namespace: SmallEarthTech.AntPlus.DeviceProfiles.AssetTrackerAssembly: SmallEarthTech.AntPlus (in SmallEarthTech.AntPlus.dll) Version: 6.0.2+1406bfb784e6c85bd5d7261241f4f4a1a31b0896
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(assetTracker.Assets, assetTracker.CollectionLock);
This ensures changes to the collection are thread safe and marshalled on the UI thread.