Click or drag to resize
Task Scheduler Managed Class Library

TaskServiceFindTask Method

Finds a task given a name and standard wildcards.

Namespace: Microsoft.Win32.TaskScheduler
Assembly: Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.12.0
Syntax
C#
public Task FindTask(
	string name,
	bool searchAllFolders = true
)
Request Example View Source

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