IActionCollection interface

Contains the actions that are performed by the task.

Methods

The IActionCollection interface has these methods.

Method Description
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.
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.
IActionCollection::put_Context Gets or sets the identifier of the principal for the task.
IActionCollection::put_XmlText Gets or sets an XML-formatted version of the collection.
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

   
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