Click or drag to resize
Task Scheduler Managed Class Library

TaskEventWatcher(TaskFolder, String, Boolean) Constructor

Initializes a new instance of the TaskEventWatcher class watching only those events for the tasks whose name matches the taskFilter in the specified taskFolder and optionally all subfolders.

Namespace: Microsoft.Win32.TaskScheduler
Assembly: Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.12.0
Syntax
C#
public TaskEventWatcher(
	TaskFolder taskFolder,
	string taskFilter = "*",
	bool includeSubfolders = false
)
Request Example View Source

Parameters

taskFolder  TaskFolder
The task folder to watch.
taskFilter  String  (Optional)
The filter for task names using standard file system wildcards. Use "*" to include all tasks.
includeSubfolders  Boolean  (Optional)
if set to true include events from tasks subfolders.
Exceptions
ExceptionCondition
ArgumentNullExceptionOccurs if the taskFolder is null.
See Also