TaskServiceFindTask Method

Finds a task given a name and standard wildcards.

Definition

Namespace: Microsoft.Win32.TaskScheduler
Assembly: Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.11.1
public Task FindTask(
	string name,
	bool searchAllFolders = true
)

Parameters

name  String
The task name. This can include the wildcards * or ?.
searchAllFolders  Boolean  (Optional)
if set to true search all sub folders.

Return Value

Task
A Task if one matches name, otherwise NULL.

See Also