ITelescopeV3Action Method |
Namespace: ASCOM.DeviceInterface
Suppose filter wheels start to appear with automatic wheel changers; new actions could be QueryWheels and SelectWheel. The former returning a formatted list of wheel names and the second taking a wheel name and making the change, returning appropriate values to indicate success or failure.
Exception | Condition |
---|---|
MethodNotImplementedException | Thrown if no actions are supported. |
ActionNotImplementedException | It is intended that the SupportedActions method will inform clients of driver capabilities, but the driver must still throw an ActionNotImplementedException exception if it is asked to perform an action that it does not support. |
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. |
Must be implemented.
Action names are case insensitive, so SelectWheel, selectwheel and SELECTWHEEL all refer to the same action.
The names of all supported actions must be returned in the SupportedActions property.