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.

Definition

Namespace: Microsoft.Win32.TaskScheduler
Assembly: Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.11.1
public TaskEventWatcher(
	TaskFolder taskFolder,
	string taskFilter = "*",
	bool includeSubfolders = false
)

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

ArgumentNullExceptionOccurs if the taskFolder is null.

See Also