 | TaskEventLog Constructor (DateTime, String, String, String, String, String) |
Initializes a new instance of the
TaskEventLog class that looks at all task events from a specified time.
Namespace:
Microsoft.Win32.TaskScheduler
Assembly:
Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.10.1
Syntaxpublic TaskEventLog(
DateTime startTime,
string taskName = null,
string machineName = null,
string domain = null,
string user = null,
string password = null
)
Public Sub New (
startTime As DateTime,
Optional taskName As String = Nothing,
Optional machineName As String = Nothing,
Optional domain As String = Nothing,
Optional user As String = Nothing,
Optional password As String = Nothing
)
public:
TaskEventLog(
DateTime startTime,
String^ taskName = nullptr,
String^ machineName = nullptr,
String^ domain = nullptr,
String^ user = nullptr,
String^ password = nullptr
)
Request Example
View SourceParameters
- startTime
- Type: SystemDateTime
The start time. - taskName (Optional)
- Type: SystemString
Name of the task. - machineName (Optional)
- Type: SystemString
Name of the machine (optional). - domain (Optional)
- Type: SystemString
The domain. - user (Optional)
- Type: SystemString
The user. - password (Optional)
- Type: SystemString
The password.
See Also