Actions (taskType) Element
Contains the actions performed by the task.
<xs:element name="Actions"
type="actionsType"
/>
The Actions element is defined by the taskType complex type.
Parent element
Element | Derived from | Description |
---|---|---|
Task | taskType | Describes the task that is performed by the Task Scheduler service. |
Child elements
Element | Type | Description |
---|---|---|
ComHandler | comHandlerType | Specifies an action that fires a handler. |
Exec | execType | Specifies an action that executes a command-line operation. |
SendEmail | sendEmailType | Specifies an action that sends an email message. |
ShowMessage | showMessageType | Specifies an action that shows a message box. |
Attributes
Name | Type | Description |
---|---|---|
Context | Principal identifier of the user who is the security context for the actions of the task. |
Remarks
The child elements listed previously (maximum 32) are defined by the actionGroup group. These elements can be added in any order.
For C++ development, the actions of a task are defined in the IActionCollection interface.
For script development, the actions of a task are defined in the ActionCollection object.
Examples
For more information and a complete example of the XML for a task that contains a single execution action, see Time Trigger Example (XML).
Requirements
Requirement | Value |
---|---|
Minimum supported client |
Windows Vista [desktop apps only] |
Minimum supported server |
Windows Server 2008 [desktop apps only] |