Click or drag to resize
Task Scheduler Managed Class Library

TaskEventLog Constructor (String, String, String, String, String)

Initializes a new instance of the TaskEventLog class.

Namespace:  Microsoft.Win32.TaskScheduler
Assembly:  Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.10.1
Syntax
public TaskEventLog(
	string machineName,
	string taskPath,
	string domain = null,
	string user = null,
	string password = null
)
Request Example View Source

Parameters

machineName
Type: SystemString
Name of the machine.
taskPath
Type: SystemString
The task path. This can be retrieved using the Path property.
domain (Optional)
Type: SystemString
The domain.
user (Optional)
Type: SystemString
The user.
password (Optional)
Type: SystemString
The password.
Exceptions
ExceptionCondition
NotSupportedExceptionThrown when instantiated on an OS prior to Windows Vista.
See Also