Click or drag to resize
Task Scheduler Managed Class Library

TaskEventWatcher Constructor (String, String, Boolean, TaskService)

Initializes a new instance of the TaskEventWatcher class.

Namespace:  Microsoft.Win32.TaskScheduler
Assembly:  Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.10.1
Syntax
public TaskEventWatcher(
	string folder,
	string taskFilter,
	bool includeSubfolders,
	TaskService taskService = null
)
Request Example View Source

Parameters

folder
Type: SystemString
The task folder to watch.
taskFilter
Type: SystemString
The filter for task names using standard file system wildcards. Use "*" to include all tasks.
includeSubfolders
Type: SystemBoolean
if set to true include events from tasks subfolders.
taskService (Optional)
Type: Microsoft.Win32.TaskSchedulerTaskService
The task service.
See Also