TaskServiceGetFolder Method
Gets the path to a folder of registered tasks.
Namespace: Microsoft.Win32.TaskSchedulerAssembly: Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.11.1
public TaskFolder GetFolder(
string folderName
)
- 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.
TaskFolderTaskFolder instance for the requested folder or
null if
folderName was unrecognized.
NotV1SupportedException |
Folder other than the root (\) was requested on a system not supporting Task Scheduler 2.0.
|