public sealed record ScheduledTaskSnapshot : IEquatable<ScheduledTaskSnapshot> A registered task and its complete native XML, preserving unsupported settings.
Remarks
LastRunTime and NextRunTime are wall-clock times as Task Scheduler reports them, in the target machine's local time with DateTimeKind.Unspecified. For a remote machine their offset is not known.
Constructors
ScheduledTaskSnapshot
public ScheduledTaskSnapshot(string Name, string Path, ScheduledTaskState State, bool Enabled, DateTime? LastRunTime, int LastTaskResult, DateTime? NextRunTime, string Xml) A registered task and its complete native XML, preserving unsupported settings.
Remarks
LastRunTime and NextRunTime are wall-clock times as Task Scheduler reports them, in the target machine's local time with DateTimeKind.Unspecified. For a remote machine their offset is not known.
Properties
Enabled
public bool Enabled { get; init; } No documentation.
LastTaskResult
public int LastTaskResult { get; init; } No documentation.
Name
public string Name { get; init; } No documentation.
Path
public string Path { get; init; } No documentation.
Xml
public string Xml { get; init; } No documentation.