double MaxSwitchValue(
short id
)Function MaxSwitchValue (
id As Short
) As DoubleMust be implemented, must not throw a NotImplementedException.
If a two state device cannot report its state, MaxSwitchValue(Int16) should return the value 1.0.
Devices are numbered from 0 to MaxSwitch - 1.
This is a Version 2 method.
| 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. |