StateValueCollectionEnumerator Class

An enumerator for IStateValue collections

Definition

Namespace: ASCOM.DeviceInterface
Assembly: ASCOM.DeviceInterfaces (in ASCOM.DeviceInterfaces.dll) Version: 7.1.3+4851.c5da65c2b
C#
public class StateValueCollectionEnumerator : IEnumerator, 
	IDisposable
Inheritance
Object    StateValueCollectionEnumerator
Implements
IEnumerator, IDisposable

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.

Constructors

StateValueCollectionEnumerator Create an empty state value collection enumerator
StateValueCollectionEnumerator(IStateValue) Create a state value collection enumerator containing the supplied IStateValue objects

Properties

Current Get the current state value.

Methods

Dispose Dispose of the state value collection enumerator.
MoveNext Move to the next state value
Reset Reset the internal index to the start of the collection so that the enumerator can be reused.

See Also