 | 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.10.1
Syntaxpublic TaskFolder GetFolder(
string folderName
)
Public Function GetFolder (
folderName As String
) As TaskFolder
public:
TaskFolder^ GetFolder(
String^ folderName
)
Request Example
View SourceParameters
- folderName
- Type: SystemString
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
Type:
TaskFolderTaskFolder instance for the requested folder or
null if
folderName was unrecognized.
ExceptionsException | Condition |
---|
NotV1SupportedException |
Folder other than the root (\) was requested on a system not supporting Task Scheduler 2.0.
|
See Also