Click or drag to resize
Task Scheduler Managed Class Library

ActionCollectionAdd Method (String, String, String)

Adds an ExecAction to the task.

Namespace:  Microsoft.Win32.TaskScheduler
Assembly:  Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.10.1
Syntax
public ExecAction Add(
	string path,
	string arguments = null,
	string workingDirectory = null
)
Request Example View Source

Parameters

path
Type: SystemString
Path to an executable file.
arguments (Optional)
Type: SystemString
Arguments associated with the command-line operation. This value can be null.
workingDirectory (Optional)
Type: SystemString
Directory that contains either the executable file or the files that are used by the executable file. This value can be null.

Return Value

Type: ExecAction
The bound ExecAction that was added to the collection.
See Also