IActionCollection interface (taskschd.h)

Contains the actions that are performed by the task.

Inheritance

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

Methods

The IActionCollection interface has these methods.

 
IActionCollection::Clear

Clears all the actions from the collection.
IActionCollection::Create

Creates and adds a new action to the collection.
IActionCollection::get__NewEnum

Gets the collection enumerator for the action collection.
IActionCollection::get_Context

Gets or sets the identifier of the principal for the task. (Get)
IActionCollection::get_Count

Gets the number of actions in the collection.
IActionCollection::get_Item

Gets a specified action from the collection.
IActionCollection::get_XmlText

Gets or sets an XML-formatted version of the collection. (Get)
IActionCollection::put_Context

Gets or sets the identifier of the principal for the task. (Put)
IActionCollection::put_XmlText

Gets or sets an XML-formatted version of the collection. (Put)
IActionCollection::Remove

Removes the specified action from the collection.

Remarks

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

Examples

For more information and example code 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

Requirement Value
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

IAction

Task Scheduler

Task Scheduler Interfaces