TrackerCollectionLock Field

The collection lock.

Definition

Namespace: SmallEarthTech.AntPlus.DeviceProfiles.AssetTracker
Assembly: SmallEarthTech.AntPlus (in SmallEarthTech.AntPlus.dll) Version: 5.0.1.0+f38da73fd23cf61ffb5cc5e01f10a544cf32a50c
C#
public Object CollectionLock

Field Value

Object

Remarks

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 -
C#
BindingOperations.EnableCollectionSynchronization(assetTracker.Assets, assetTracker.CollectionLock);
This ensures changes to the collection are thread safe and marshalled on the UI thread.

See Also