 | 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.10.1
Syntaxpublic IEnumerable<Task> EnumerateTasks(
Predicate<Task> filter = null,
bool recurse = false
)
Public Function EnumerateTasks (
Optional filter As Predicate(Of Task) = Nothing,
Optional recurse As Boolean = false
) As IEnumerable(Of Task)
public:
IEnumerable<Task^>^ EnumerateTasks(
Predicate<Task^>^ filter = nullptr,
bool recurse = false
)
Request Example
View SourceParameters
- filter (Optional)
- Type: SystemPredicateTask
An optional predicate used to filter the returned Task instances. - recurse (Optional)
- Type: SystemBoolean
Specifies whether the enumeration should include tasks in any subfolders.
Return Value
Type:
IEnumerableTaskAn enumerable collection of directories that matches
filter and
recurse.
See Also