 | TaskEventWatcher Constructor (TaskFolder, String, Boolean) |
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.TaskScheduler
Assembly:
Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.10.1
Syntaxpublic TaskEventWatcher(
TaskFolder taskFolder,
string taskFilter = "*",
bool includeSubfolders = false
)
Public Sub New (
taskFolder As TaskFolder,
Optional taskFilter As String = "*",
Optional includeSubfolders As Boolean = false
)
public:
TaskEventWatcher(
TaskFolder^ taskFolder,
String^ taskFilter = L"*",
bool includeSubfolders = false
)
Request Example
View SourceParameters
- taskFolder
- Type: Microsoft.Win32.TaskSchedulerTaskFolder
The task folder to watch. - taskFilter (Optional)
- Type: SystemString
The filter for task names using standard file system wildcards. Use "*" to include all tasks. - includeSubfolders (Optional)
- Type: SystemBoolean
if set to true include events from tasks subfolders.
Exceptions
See Also