ISwitchV2SetSwitch Method |
Namespace: ASCOM.DeviceInterface
| Exception | Condition |
|---|---|
| InvalidValueException | If id is outside the range 0 to MaxSwitch - 1 |
| MethodNotImplementedException | If CanWrite(Int16) is false. |
| NotConnectedException | If the device is not connected |
| DriverException | An error occurred that is not described by one of the more specific ASCOM exceptions. Include sufficient detail in the message text to enable the issue to be accurately diagnosed by someone other than yourself. |
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