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.TaskSchedulerAssembly: 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.