Click or drag to resize
Task Scheduler Managed Class Library

TaskFolderEnumerateTasks Method

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

Namespace: Microsoft.Win32.TaskScheduler
Assembly: Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.12.0
Syntax
C#
public IEnumerable<Task> EnumerateTasks(
	Predicate<Task> filter = null,
	bool recurse = false
)
Request Example View Source

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