Click or drag to resize
Task Scheduler Managed Class Library

TaskEventWatcher(String, String, String, String, SecureString) Constructor

Initializes a new instance of the TaskEventWatcher class on a remote machine.

Namespace: Microsoft.Win32.TaskScheduler
Assembly: Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.12.0
Syntax
C#
public TaskEventWatcher(
	string machineName,
	string taskPath,
	string domain = null,
	string user = null,
	SecureString securePassword = null
)
Request Example View Source

Parameters

machineName  String
Name of the remote machine.
taskPath  String
The task path.
domain  String  (Optional)
The domain of the user account.
user  String  (Optional)
The user name with permissions on the remote machine.
securePassword  SecureString  (Optional)
The password for the user as a secure string.
See Also