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.10.1
Syntax
public Task FindTask(
	string name,
	bool searchAllFolders = true
)
Request Example View Source

Parameters

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

Return Value

Type: Task
A Task if one matches name, otherwise NULL.
See Also