Редагувати

Поділитися через


ActionCollection object

Scripting object that contains the actions performed by the task.

Members

The ActionCollection object has these types of members:

Methods

The ActionCollection object has these methods.

Method Description
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 ActionCollection object has these properties.

Property Access type Description
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

Requirement Value
Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2008 [desktop apps only]
Type library
Taskschd.tlb
DLL
Taskschd.dll