Click or drag to resize
Task Scheduler Managed Class Library

TaskEventWatcher Constructor (Task)

Initializes a new instance of the TaskEventWatcher class watching only those events for the specified task.

Namespace:  Microsoft.Win32.TaskScheduler
Assembly:  Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.10.1
Syntax
public TaskEventWatcher(
	Task task
)
Request Example View Source

Parameters

task
Type: Microsoft.Win32.TaskSchedulerTask
The task to watch.
Exceptions
ExceptionCondition
ArgumentNullExceptionOccurs if the task is null.
See Also