 | TaskEventLog Constructor (String, Int32, Int32, NullableDateTime, String, String, String, String) |
Namespace:
Microsoft.Win32.TaskScheduler
Assembly:
Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.10.1
Syntaxpublic TaskEventLog(
string taskName = null,
int[] eventIDs = null,
int[] levels = null,
DateTime? startTime = null,
string machineName = null,
string domain = null,
string user = null,
string password = null
)
Public Sub New (
Optional taskName As String = Nothing,
Optional eventIDs As Integer() = Nothing,
Optional levels As Integer() = Nothing,
Optional startTime As DateTime? = Nothing,
Optional machineName As String = Nothing,
Optional domain As String = Nothing,
Optional user As String = Nothing,
Optional password As String = Nothing
)
public:
TaskEventLog(
String^ taskName = nullptr,
array<int>^ eventIDs = nullptr,
array<int>^ levels = nullptr,
Nullable<DateTime> startTime = nullptr,
String^ machineName = nullptr,
String^ domain = nullptr,
String^ user = nullptr,
String^ password = nullptr
)
Request Example
View SourceParameters
- taskName (Optional)
- Type: SystemString
Name of the task. - eventIDs (Optional)
- Type: SystemInt32
The event ids. - levels (Optional)
- Type: SystemInt32
The levels. - startTime (Optional)
- Type: SystemNullableDateTime
The start time. - 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