TaskFolderEnumerateTasks Method

Returns an enumerable collection of tasks that matches a specified filter and recursion option.

Definition

Namespace: Microsoft.Win32.TaskScheduler
Assembly: Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.11.1
public IEnumerable<Task> EnumerateTasks(
	Predicate<Task> filter = null,
	bool recurse = false
)

Parameters

filter  PredicateTask  (Optional)
An optional predicate used to filter the returned Task instances.
recurse  Boolean  (Optional)
Specifies whether the enumeration should include tasks in any subfolders.

Return Value

IEnumerableTask
An enumerable collection of directories that matches filter and recurse.

See Also