AntDeviceCollection Class

This is a thread safe observable collection of ANT devices.

Definition

Namespace: SmallEarthTech.AntPlus
Assembly: SmallEarthTech.AntPlus (in SmallEarthTech.AntPlus.dll) Version: 4.0.0.0+01fc5ca24e8f030354f28ec9cef320bc5cbb0ef6
C#
public class AntDeviceCollection : ObservableCollection<AntDevice>
Inheritance
Object    CollectionAntDevice    ObservableCollectionAntDevice    AntDeviceCollection

Remarks

This class will create an AntDevice from one of the supported ANT device classes and add it to the collection as they are discovered. An important consideration is when the device is no longer available. You may supply a timeout duration or the number of missed messages. You should prefer missed messages as this scales the timeout duration based on the broadcast transmission rate of the particular ANT device. The timeout/missed messages will be applied globally to ANT devices created by this collection.

Constructors

AntDeviceCollection Initializes a new instance of the AntDeviceCollection class. The ANT radio is configured for continuous scan mode.

Properties

CountGets the number of elements actually contained in the CollectionT.
(Inherited from CollectionAntDevice)
ItemGets or sets the element at the specified index.
(Inherited from CollectionAntDevice)
ItemsGets a IListT wrapper around the CollectionT.
(Inherited from CollectionAntDevice)

Methods

AddAdds the specified item to the end of the collection.
BlockReentrancyDisallows reentrant attempts to change this collection.
(Inherited from ObservableCollectionAntDevice)
CheckReentrancyChecks for reentrant attempts to change this collection.
(Inherited from ObservableCollectionAntDevice)
ClearRemoves all elements from the CollectionT.
(Inherited from CollectionAntDevice)
ClearItemsRemoves all items from the collection.
(Inherited from ObservableCollectionAntDevice)
ContainsDetermines whether an element is in the CollectionT.
(Inherited from CollectionAntDevice)
CopyToCopies the entire CollectionT to a compatible one-dimensional Array, starting at the specified index of the target array.
(Inherited from CollectionAntDevice)
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetEnumeratorReturns an enumerator that iterates through the CollectionT.
(Inherited from CollectionAntDevice)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
IndexOfSearches for the specified object and returns the zero-based index of the first occurrence within the entire CollectionT.
(Inherited from CollectionAntDevice)
InsertInserts an element into the CollectionT at the specified index.
(Inherited from CollectionAntDevice)
InsertItemInserts an item into the collection at the specified index.
(Inherited from ObservableCollectionAntDevice)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
MoveMoves the item at the specified index to a new location in the collection.
(Inherited from ObservableCollectionAntDevice)
MoveItemMoves the item at the specified index to a new location in the collection.
(Inherited from ObservableCollectionAntDevice)
OnCollectionChangedRaises the CollectionChanged event with the provided arguments.
(Inherited from ObservableCollectionAntDevice)
OnPropertyChangedRaises the PropertyChanged event with the provided arguments.
(Inherited from ObservableCollectionAntDevice)
RemoveRemoves the specified item from the collection.
RemoveAtRemoves the element at the specified index of the CollectionT.
(Inherited from CollectionAntDevice)
RemoveItemRemoves the item at the specified index of the collection.
(Inherited from ObservableCollectionAntDevice)
SetItemReplaces the element at the specified index.
(Inherited from ObservableCollectionAntDevice)
ToStringReturns a string that represents the current object.
(Inherited from Object)

Events

CollectionChangedOccurs when an item is added, removed, or moved, or the entire list is refreshed.
(Inherited from ObservableCollectionAntDevice)
PropertyChangedOccurs when a property value changes.
(Inherited from ObservableCollectionAntDevice)

Fields

CollectionLock The collection lock.

See Also