ActionCollection Object

Scripting object that contains the actions performed by the task.

Methods

The ActionCollection object defines the following methods.

MethodDescription

Create

Creates and adds a new action to the collection.

Clear

Clears all the actions from the collection.

Remove

Removes a specified action from the collection.

 

Properties

The ActionCollection object defines the following properties.

PropertyAccess typeDescription

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, the actions of a task are specified in the Actions element of the Task Scheduler schema.

Examples

For more information and example code for this scripting object, see Time Trigger Example (Scripting), Event Trigger Example (Scripting), Daily Trigger Example (Scripting), Registration Trigger Example (Scripting), Weekly Trigger Example (Scripting), Logon Trigger Example (Scripting), or Boot Trigger Example (Scripting).

Requirements

Minimum supported clientWindows Vista
Minimum supported serverWindows Server 2008
Type LibraryTaskschd.tlb
DLLTaskschd.dll

See Also

Task Scheduler Objects
Task Scheduler

Send comments about this topic to Microsoft

Build date: 11/12/2009

Tags :


Page view tracker