public void SetSwitchValue(
short id,
double value
)Public Sub SetSwitchValue (
id As Short,
value As Double
)| NotImplementedException | If CanWrite(Int16) is false. |
| InvalidValueException | If id is outside the range 0 to MaxSwitch - 1 |
| InvalidValueException | If value is outside the range MinSwitchValue(Int16) to MaxSwitchValue(Int16) |
| 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. |