TaskServiceGetFolder Method

Gets the path to a folder of registered tasks.

Definition

Namespace: Microsoft.Win32.TaskScheduler
Assembly: Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.11.0
public TaskFolder GetFolder(
	string folderName
)

Parameters

folderName  String
The path to the folder to retrieve. Do not use a backslash following the last folder name in the path. The root task folder is specified with a backslash (\). An example of a task folder path, under the root task folder, is \MyTaskFolder. The '.' character cannot be used to specify the current task folder and the '..' characters cannot be used to specify the parent task folder in the path.

Return Value

TaskFolder
TaskFolder instance for the requested folder or null if folderName was unrecognized.

Exceptions

NotV1SupportedException Folder other than the root (\) was requested on a system not supporting Task Scheduler 2.0.

See Also