ISwitchV2SetSwitchName Method |
Namespace: ASCOM.DeviceInterface
| Exception | Condition |
|---|---|
| MethodNotImplementedException | If the device name cannot be set in the application code. |
| 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. Include sufficient detail in the message text to enable the issue to be accurately diagnosed by someone other than yourself. |
Can throw a MethodNotImplementedException if the device name can not be set by the application.
Devices are numbered from 0 to MaxSwitch - 1