Ant Collection Class
This class largely mirrors AntDeviceCollection but is designed specifically to be integrated into
an application via dependency injection.
Definition
Namespace: SmallEarthTech.AntPlus.Extensions.Hosting
Assembly: SmallEarthTech.AntPlus.Extensions.Hosting (in SmallEarthTech.AntPlus.Extensions.Hosting.dll) Version: 2.0.4+3bc433b476ad11fc6896cfd0bd783d60504dc315
Assembly: SmallEarthTech.AntPlus.Extensions.Hosting (in SmallEarthTech.AntPlus.Extensions.Hosting.dll) Version: 2.0.4+3bc433b476ad11fc6896cfd0bd783d60504dc315
C#
public class AntCollection : ObservableCollection<AntDevice>,
IDisposableVB
Public Class AntCollection
Inherits ObservableCollection(Of AntDevice)
Implements IDisposableC++
public ref class AntCollection : public ObservableCollection<AntDevice^>,
IDisposableF#
type AntCollection =
class
inherit ObservableCollection<AntDevice>
interface IDisposable
end- Inheritance
- Object CollectionAntDevice ObservableCollectionAntDevice AntCollection
- Implements
- IDisposable
Constructors
| AntCollection | Initializes a new instance of the AntCollection class. The ANT radio is initialized for continuous scan mode. |
Properties
| Count | (Inherited from CollectionAntDevice) |
| Item | (Inherited from CollectionAntDevice) |
| Items | (Inherited from CollectionAntDevice) |
Methods
Events
| CollectionChanged | (Inherited from ObservableCollectionAntDevice) |
| PropertyChanged | (Inherited from ObservableCollectionAntDevice) |
Fields
| CollectionLock |
The collection lock typically used by WPF applications to synchronize UI updates when devices are added or
removed from the collection. For example, in the code behind for a window that is using this collection
would include the following line in its constructor -
C# |