IAction interface (taskschd.h)

Provides the common properties inherited by all action objects. An action object is created by the IActionCollection::Create method.


The IAction interface inherits from the IDispatch interface.


The IAction interface has these methods.


Gets or sets the identifier of the action. (Get)

Gets the type of action.

Gets or sets the identifier of the action. (Put)


For more information about how actions and tasks work together, see Task Actions. The following table contains the interfaces that represent the actions that can be performed:

API Description
IComHandlerAction Represents an action that fires a handler.
IExecAction Represents an action that executes a command-line operation.
IEmailAction Represents an action that sends an email message.
IShowMessageAction Represents an action that shows a message box.

When reading or writing XML, the actions of a task are specified in the Actions element of the Task Scheduler schema.


For more information and a code example for this interface, see Time Trigger Example (C++), Event Trigger Example (C++), Daily Trigger Example (C++), Registration Trigger Example (C++), Weekly Trigger Example (C++), Logon Trigger Example (C++), or Boot Trigger Example (C++).


Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header taskschd.h

See also



Task Scheduler

Task Scheduler Interfaces