Click or drag to resize
Task Scheduler Managed Class Library

TaskServiceGetFolder Method

Gets the path to a folder of registered tasks.

Namespace: Microsoft.Win32.TaskScheduler
Assembly: Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.12.0
Syntax
C#
public TaskFolder GetFolder(
	string folderName
)
Request Example View Source

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
ExceptionCondition
NotV1SupportedException Folder other than the root (\) was requested on a system not supporting Task Scheduler 2.0.
See Also