ScheduledTask Struct
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a scheduled task.
public struct ScheduledTask
type ScheduledTask = struct
Public Structure ScheduledTask
- Inheritance
-
ScheduledTask
Properties
ExitCode |
Gets the exit code HResult provided by a task that failed, if avaliable. |
FullName |
Gets the fully-qualified name of the task, including the path. |
Id |
Gets the unique identifier for this instance of the scheduled task. |
Name |
Gets the relative name of the task, not including the path. |
StartTime |
Gets the timestamp at which the scheduled task start event was logged in the trace, if any. |
StopTime |
Gets the timestamp at which the scheduled task stop event was logged in the trace, if any. |
Succeeded |
Gets a value that indicates where the task completed succesfully, if avaliable. |
TriggerTime |
Gets the timestamp at which the scheduled task trigger event was logged in the trace, if any. |
TriggerType |
Gets the type of trigger that is causing the scheduled task to run, if available. |
TriggerUserDomainName |
Gets the domain name, if any, for the user identity triggering the task, if available. |
TriggerUserFullName |
Gets fully-qualified name of the user identity triggering the task, if available, including the domain name. |
TriggerUserName |
Gets the name of the user identity triggering the task, if available, not including the domain name. |
UserDomainName |
Gets the domain name, if any, for the user identity used to run the task, if available. |
UserFullName |
Gets fully-qualified name of the user identity used to run the task, if available, including the domain name. |
UserName |
Gets the name of the user identity used to run the task, if available, not including the domain name. |
Methods
AddStart(ScheduledTaskStartEvent) | |
AddStop(ScheduledTaskStopEvent) | |
Create(ScheduledTaskStartEvent) | |
Create(ScheduledTaskStopEvent) | |
Create(ScheduledTaskTriggerEvent) |