Returns the list of action names supported by this driver.

Namespace: ASCOM.DeviceInterface
Assembly: ASCOM.DeviceInterfaces (in ASCOM.DeviceInterfaces.dll) Version: 6.0.0.0 (6.1.1.2619)

Syntax

C#
ArrayList SupportedActions { get; }
Visual Basic
ReadOnly Property SupportedActions As ArrayList
	Get
Visual C++
property ArrayList^ SupportedActions {
	ArrayList^ get ();
}

Field Value

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

Remarks

Must be implemented, must not throw a PropertyNotImplementedException.

This method must return an empty arraylist if no actions are supported.

This is an aid to client authors and testers who would otherwise have to repeatedly poll the driver to determine its capabilities. Returned action names may be in mixed case to enhance presentation but will be recognised case insensitively in the Action method.

An array list collection has been selected as the vehicle for action names in order to make it easier for clients to determine whether a particular action is supported. This is easily done through the Contains method. Since the collection is also ennumerable it is easy to use constructs such as For Each ... to operate on members without having to be concerned about hom many members are in the collection.

Collections have been used in the Telescope specification for a number of years and are known to be compatible with COM. Within .NET the ArrayList is the correct implementation to use as the .NET Generic methods are not compatible with COM.

Exceptions

ExceptionCondition
ASCOM..::..DriverExceptionMust throw an exception if the call was not successful

See Also