SwitchGetSwitchValue Method |
Namespace: ASCOM.DriverAccess
| Exception | Condition |
|---|---|
| InvalidOperationException | If the value cannot be read. This is not recommended but it is not always possible to read the value from some hardware. Once the value has been set the last value set must be returned. |
| InvalidValueException | If id is outside the range 0 to MaxSwitch - 1 |
| 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. |
This method was first introduced in Version 2.