 | TaskService.FindAllTasks(Regex, Boolean) Method |
Finds all tasks matching a name or standard wildcards.
Namespace: Microsoft.Win32.TaskSchedulerAssembly: Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.12.0
Syntaxpublic Task[] FindAllTasks(
Regex name,
bool searchAllFolders = true
)
Request Example
View SourceParameters
- name Regex
- Name of the task in regular expression form.
- searchAllFolders Boolean (Optional)
- if set to true search all sub folders.
Return Value
Task[]An array of
Task containing all tasks matching
name.
See Also