IAction interface

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

Members

The IAction interface inherits from the IDispatch interface. IAction also has these types of members:

Properties

The IAction interface has these properties.

PropertyAccess typeDescription

Id

Read/write

Gets or sets the identifier of the action.

Type

Read-only

Gets the type of the action.

 

Remarks

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:

APIDescription
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.

Examples

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++).

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Taskschd.h

Library

Taskschd.lib

DLL

Taskschd.dll

See also

Task Scheduler Interfaces
Task Scheduler
IActionCollection
IActionCollection::Create

 

 

Community Additions

ADD
Show:
© 2014 Microsoft