For scripting, gets the type of the action.
Syntax
Property Value
This property returns one of the following TASK_ACTION_TYPE enumeration constants.
| Value | Meaning |
- TASK_ACTION_EXEC
- 0
| This action performs a command-line operation. For example, the action could run a script, launch an executable, or, if the name of a document is provided, find its associated application and launch the application with the document.
|
- TASK_ACTION_COM_HANDLER
- 5
| This action fires a handler.
|
- TASK_ACTION_SEND_EMAIL
- 6
| This action sends an e-mail.
|
- TASK_ACTION_SHOW_MESSAGE
- 7
| This action shows a message box.
|
Remarks
The action type is defined when the action is created and cannot be changed later. For information on creating an action, see ActionCollection.Create.
For information on how actions and tasks work together, see Task Actions.
Requirements
| Minimum supported client | Windows Vista |
| Minimum supported server | Windows Server 2008 |
| Type Library | Taskschd.tlb |
| DLL | Taskschd.dll |
See Also
- TASK_ACTION_TYPE
- Task Scheduler
- Action
Send comments about this topic to Microsoft
Build date: 11/12/2009