TaskFolderEnumerateTasks Method
Returns an enumerable collection of tasks that matches a specified filter and recursion option.
Namespace: Microsoft.Win32.TaskSchedulerAssembly: Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.11.1
public IEnumerable<Task> EnumerateTasks(
Predicate<Task> filter = null,
bool recurse = false
)
- 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.
IEnumerableTaskAn enumerable collection of directories that matches
filter and
recurse.