Click or drag to resize

AlpacaDeviceBaseClassSupportedActions Property

Returns the list of action names supported by this driver.

Namespace: ASCOM.Alpaca.Clients
Assembly: ASCOM.Alpaca (in ASCOM.Alpaca.dll) Version: 2.1.0+15bd426746e14ecc59ad81c289f923331d1aae8b
Syntax
public IList<string> SupportedActions { get; }

Property Value

IListString
An ArrayList of strings (SafeArray collection) containing the names of supported actions.

Implements

IAscomDeviceSupportedActions
Exceptions
ExceptionCondition
NotConnectedExceptionWhen Connected is False.
DriverExceptionAn 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.
Remarks

Must be implemented

This method must return an empty IListT object if no actions are supported. Please do not throw a NotImplementedException.

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