StateValue Class

Data class to hold a single operational state name and value

Definition

Namespace: ASCOM.DeviceInterface
Assembly: ASCOM.DeviceInterfaces (in ASCOM.DeviceInterfaces.dll) Version: 7.1.3+4851.c5da65c2b
C#
[SerializableAttribute]
public class StateValue : IStateValue
Inheritance
Object    StateValue
Implements
IStateValue

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

StateValue Create a new state value object
StateValue(DateTime) Create a StateValue object whose Name property is "TimeStamp" and whose Value property is the supplied date-time value.
StateValue(String, Object) Create a new state value object with the given name and value

Properties

Name State name
Value State value

See Also