SwitchSetSwitchValue Method |
Namespace: ASCOM.DriverAccess
| Exception | Condition |
|---|---|
| InvalidValueException | If the value is not between the maximum and minimum. |
| InvalidValueException | If id is outside the range 0 to MaxSwitch - 1 |
| MethodNotImplementedException | If the method is not implemented, 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. The device did not successfully complete the request. |
A value that is intermediate between the values specified by SwitchStep(Int16) must be set to an achievable value.
This method was first introduced in Version 2.