 | TaskServiceFindTask Method |
Finds a task given a name and standard wildcards.
Namespace: Microsoft.Win32.TaskSchedulerAssembly: Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.12.0
Syntaxpublic Task FindTask(
string name,
bool searchAllFolders = true
)
Request Example
View SourceParameters
- name String
- The task name. This can include the wildcards * or ?.
- searchAllFolders Boolean (Optional)
- if set to true search all sub folders.
Return Value
TaskA
Task if one matches
name, otherwise NULL.
See Also