AntDeviceCollectionCollectionLock Field
The collection lock.
Namespace: SmallEarthTech.AntPlusAssembly: SmallEarthTech.AntPlus (in SmallEarthTech.AntPlus.dll) Version: 5.1.1+506fd73c3b72ad19a414fa5c6d86694cac54d86e
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(App.AntDevices, App.AntDevices.CollectionLock);
This ensures changes to the collection are thread safe and marshalled on the UI thread.