public bool GetSwitch(
short id
)Public Function GetSwitch (
id As Short
) As Boolean| InvalidOperationException | If there is a temporary condition that prevents the device value being returned. |
| InvalidValueException | If id is outside the range 0 to MaxSwitch - 1 |
| NotConnectedException | When Connected is False. |
| 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. |