Click or drag to resize

AscomDriverAction Method

Invokes the specified device-specific custom action.

Namespace:  ASCOM.DriverAccess
Assembly:  ASCOM.DriverAccess (in ASCOM.DriverAccess.dll) Version: 3c9121baba46811fe6e53a58a05935662261416d
public string Action(
	string ActionName,
	string ActionParameters


Type: SystemString
A well known name agreed by interested parties that represents the action to be carried out.
Type: SystemString
List of required parameters or an Empty String if none are required.

Return Value

Type: String
A string response. The meaning of returned strings is set by the driver author.
MethodNotImplementedExceptionThrown if no actions are supported.
ActionNotImplementedExceptionIt 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.
NotConnectedExceptionIf the driver is not connected.
DriverExceptionMust throw an exception if the call was not successful.

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.

See Also