Click or drag to resize

AscomDriverSupportedActions Property

Returns the list of custom action names supported by this driver.

Namespace: ASCOM.DriverAccess
Assembly: ASCOM.DriverAccess (in ASCOM.DriverAccess.dll) Version: 7.0.0-rc.0+0
Syntax
public ArrayList SupportedActions { get; }

Property Value

ArrayList
An ArrayList of strings (SafeArray collection) containing the names of supported actions.
Exceptions
ExceptionCondition
NotConnectedExceptionIf the device is not connected
DriverExceptionAn error occurred that is not described by one of the more specific ASCOM exceptions. The device did not successfully complete the request.
Remarks

Must be implemented

This method must return an empty ArrayList if no actions are supported. Do not throw a PropertyNotImplementedException.

SupportedActions is a "discovery" mechanism that enables clients to know which Actions a device supports without having to exercise the Actions themselves. This mechanism is necessary because there could be people / equipment safety issues if actions are called unexpectedly or out of a defined process sequence. It follows from this that SupportedActions must return names that match the spelling of Action names exactly, without additional descriptive text. However, returned names may use any casing because the Action(String, String) ActionName parameter is case insensitive.

See Also