Редагувати

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


Action.Type property

For scripting, gets the type of the action.

Syntax

Action.Type As Integer

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 email message.
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

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

See also

TASK_ACTION_TYPE

Task Scheduler

Action