void SetSwitch(
short id,
bool state
)Sub SetSwitch (
id As Short,
state As Boolean
)Can throw a NotImplementedException 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
| NotImplementedException | If CanWrite(Int16) is false. |
| 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. |