Click or drag to resize

StateValueCollection Class

StateValueCollection is a strongly-typed collection that is enumerable by both COM and .NET. The IStateValueCollection, IEnumerator and IEnumerable interfaces provide this polymorphism.
Inheritance Hierarchy
SystemObject
  ASCOM.DeviceInterfaceStateValueCollection

Namespace: ASCOM.DeviceInterface
Assembly: ASCOM.DeviceInterfaces (in ASCOM.DeviceInterfaces.dll) Version: 7.0.0-rc.0+0
Syntax
public class StateValueCollection : IStateValueCollection, 
	IEnumerable, IDisposable

The StateValueCollection type exposes the following members.

Constructors
 NameDescription
Public methodStateValueCollection Create an empty state value collection
Public methodStateValueCollection(ListIStateValue) Create a state value collection populated with values a list of objects that implement IStateValue
Public methodStateValueCollection(ListStateValue) Create a state value collection populated with values a list of StateValue objects
Public methodStateValueCollection(StateValue) Create a state value collection populated with values from an array of StateValue objects
Top
Properties
 NameDescription
Public propertyCount The number of state values in the collection
Public propertyItem Returns the state value as an IStateValue object at the given index into the collection.
Top
Methods
 NameDescription
Public methodAdd(IStateValue) Add an object that implements IStateValue to the state value collection.
Public methodAdd(String, Object) Add a new state value with the given name and value
Public methodAddLocalDateTime Add the local date and time to the state value collection.
Public methodAddUtcDateTime Add the UTC date and time to the state value collection.
Public methodDispose Dispose of the state value collection.
Public methodGetEnumerator An enumerator that enables items in the collection to be retrieved
Top
Remarks

See Device State Implementation and Requirements for further information on how to implement DeviceState, which properties to include, and the implementation support provided by the Platform.

See Also