 | TaskEventWatcher Constructor (String, TaskService) |
Initializes a new instance of the
TaskEventWatcher class watching only
those events for the task with the provided path on the local machine.
Namespace:
Microsoft.Win32.TaskScheduler
Assembly:
Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.10.1
Syntaxpublic TaskEventWatcher(
string taskPath,
TaskService taskService = null
)
Public Sub New (
taskPath As String,
Optional taskService As TaskService = Nothing
)
public:
TaskEventWatcher(
String^ taskPath,
TaskService^ taskService = nullptr
)
Request Example
View SourceParameters
- taskPath
- Type: SystemString
The full path (folders and name) of the task to watch. - taskService (Optional)
- Type: Microsoft.Win32.TaskSchedulerTaskService
The task service.
Exceptions
See Also