ISwitchV2SetSwitch Method |
Namespace: ASCOM.DeviceInterface
Exception | Condition |
---|---|
InvalidValueException | If id is outside the range 0 to MaxSwitch - 1 |
MethodNotImplementedException | If CanWrite(Int16) is false. |
Can throw a MethodNotImplementedException if CanWrite(Int16) is False.
GetSwitchValue(Int16) must return MaxSwitchValue(Int16) if the set state is true and MinSwitchValue(Int16) if the set state is false.
Devices are numbered from 0 to MaxSwitch - 1