UnknownDeviceCollectionLock Field

The collection lock.

Definition

Namespace: SmallEarthTech.AntPlus.DeviceProfiles
Assembly: SmallEarthTech.AntPlus (in SmallEarthTech.AntPlus.dll) Version: 6.0.3+54994fa34e781af8d41d8f78e72210c9fe046b39
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 - BindingOperations.EnableCollectionSynchronization(unknownDevice.DataPages, unknownDevice.CollectionLock); This ensures changes to the collection are thread safe and marshalled on the UI thread.

See Also