SwitchSetSwitch Method |
Namespace: ASCOM.DriverAccess
| Exception | Condition |
|---|---|
| InvalidValueException | If id is outside the range 0 to MaxSwitch - 1 |
| MethodNotImplementedException | If the device cannot be written to (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. The device did not successfully complete the request. |
The GetSwitchValue(Int16) will be set to MaxSwitchValue(Int16) if state is true and to MinSwitchValue(Int16) if the state is False.