Click or drag to resize
Task Scheduler Managed Class Library

TaskServiceFindAllTasks Method (Regex, Boolean)

Finds all tasks matching a name or standard wildcards.

Namespace:  Microsoft.Win32.TaskScheduler
Assembly:  Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.10.1
Syntax
public Task[] FindAllTasks(
	Regex name,
	bool searchAllFolders = true
)
Request Example View Source

Parameters

name
Type: System.Text.RegularExpressionsRegex
Name of the task in regular expression form.
searchAllFolders (Optional)
Type: SystemBoolean
if set to true search all sub folders.

Return Value

Type: Task
An array of Task containing all tasks matching name.
See Also