 | TaskEventWatcher Constructor (String, String, String, Boolean, String, String, String) |
Namespace:
Microsoft.Win32.TaskScheduler
Assembly:
Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.10.1
Syntaxpublic TaskEventWatcher(
string machineName,
string folder,
string taskFilter = "*",
bool includeSubfolders = false,
string domain = null,
string user = null,
string password = null
)
Public Sub New (
machineName As String,
folder As String,
Optional taskFilter As String = "*",
Optional includeSubfolders As Boolean = false,
Optional domain As String = Nothing,
Optional user As String = Nothing,
Optional password As String = Nothing
)
public:
TaskEventWatcher(
String^ machineName,
String^ folder,
String^ taskFilter = L"*",
bool includeSubfolders = false,
String^ domain = nullptr,
String^ user = nullptr,
String^ password = nullptr
)
Request Example
View SourceParameters
- machineName
- Type: SystemString
Name of the remote machine. - folder
- Type: SystemString
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. - domain (Optional)
- Type: SystemString
The domain of the user account. - user (Optional)
- Type: SystemString
The user name with permissions on the remote machine. - password (Optional)
- Type: SystemString
The password for the user.
See Also