ScheduledTaskSnapshot record

Namespace Runic.Platform.Administration.Windows.Tasks in Runic.Platform.Administration.Windows 0.23.0

public sealed record ScheduledTaskSnapshot : IEquatable<ScheduledTaskSnapshot>

Inherits or implements IEquatable.

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.

LastRunTime

public DateTime? LastRunTime { get; init; }

No documentation.

LastTaskResult

public int LastTaskResult { get; init; }

No documentation.

Name

public string Name { get; init; }

No documentation.

NextRunTime

public DateTime? NextRunTime { get; init; }

No documentation.

Path

public string Path { get; init; }

No documentation.

State

public ScheduledTaskState State { get; init; }

No documentation.

Xml

public string Xml { get; init; }

No documentation.