IActionCollection interface

Contains the actions that are performed by the task.

Members

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

Methods

The IActionCollection interface has these methods.

MethodDescription
Clear

Clears all the actions from the collection.

Create

Creates and adds a new action to the collection.

Remove

Removes a specified action from the collection.

 

Properties

The IActionCollection interface has these properties.

PropertyAccess typeDescription

_NewEnum

Read-only

Gets the collection enumerator for the action collection.

Context

Read/write

Gets or sets the identifier of the principal for the task.

Count

Read-only

Gets the number of actions in the collection.

Item

Read-only

Gets a specified action from the collection.

XmlText

Read/write

Gets or sets an XML-formatted version of 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]

Header

Taskschd.h

Library

Taskschd.lib

DLL

Taskschd.dll

See also

Task Scheduler Interfaces
Task Scheduler
IAction

 

 

Show: