Table of Contents

Class WindowsScheduledTask

Namespace
CENTREL.XIA.Configuration.Types
Assembly
CENTREL.XIA.Configuration.Types.dll

Represents a scheduled task running on Windows Vista, Windows Server 2008, or above.

public class WindowsScheduledTask : BypassSection, IComparable<WindowsScheduledTask>
Inheritance
WindowsScheduledTask
Implements
Inherited Members

Constructors

WindowsScheduledTask()

Initializes a new instance of the CENTREL.XIA.Configuration.Types.WindowsScheduledTask2 class.

public WindowsScheduledTask()

Properties

Actions

Gets or sets the actions that should be executed by the scheduled task.

public WindowsScheduledTaskActionCollection Actions { get; set; }

Property Value

WindowsScheduledTaskActionCollection

Author

Gets or sets the Windows account that created the scheduled task - for example "CORP\Administrator".

public string Author { get; set; }

Property Value

string

Conditions

Gets or sets the conditions for this scheduled task running.

public WindowsScheduledTaskConditions Conditions { get; set; }

Property Value

WindowsScheduledTaskConditions

Date

Gets or sets the date on which the task was registered.

public DateTime Date { get; set; }

Property Value

DateTime

Description

Gets or sets the description of this scheduled task.

public string Description { get; set; }

Property Value

string

Enabled

Gets or sets whether this scheduled task is enabled.

public BooleanOption Enabled { get; set; }

Property Value

BooleanOption

IsHidden

Gets or sets whether the task is hidden.

public BooleanOption IsHidden { get; set; }

Property Value

BooleanOption

ParentPath

Gets the parent folder path in which the task resides without the task name - for example "\Microsoft\Windows".

public string ParentPath { get; }

Property Value

string

Principal

Gets or sets the user principal assigned to execute this task.

public WindowsScheduledTaskPrincipal Principal { get; set; }

Property Value

WindowsScheduledTaskPrincipal

Settings

Gets or sets the settings for the scheduled task.

public WindowsScheduledTaskSettings Settings { get; set; }

Property Value

WindowsScheduledTaskSettings

TaskFullPath

Gets the task path including the task name - for example "\Microsoft\Windows.NET Framework.NET Framework NGEN v4.0.30319".

public string TaskFullPath { get; }

Property Value

string

TaskName

Gets or sets the name of the scheduled task - for example ".NET Framework NGEN v4.0.30319".

public string TaskName { get; set; }

Property Value

string

TaskPath

Gets or sets the path of the task without the task name - for example "\Microsoft\Windows.NET Framework".

public string TaskPath { get; set; }

Property Value

string

Triggers

Gets or sets the triggers configured for this scheduled task.

public WindowsScheduledTaskTriggers Triggers { get; set; }

Property Value

WindowsScheduledTaskTriggers

Version

Gets or sets the version of the scheduled task.

public SerializableVersion Version { get; set; }

Property Value

SerializableVersion

VersionString

Gets the version of the scheduled task a human readable string.

public string VersionString { get; }

Property Value

string

Methods

CompareTo(WindowsScheduledTask)

Compares two CENTREL.XIA.Configuration.Types.WindowsScheduledTask objects to allow sorting alphabetically by task name.

public int CompareTo(WindowsScheduledTask other)

Parameters

other WindowsScheduledTask

The CENTREL.XIA.Configuration.Types.WindowsScheduledTask to compare to.

Returns

int

The sort order of the two CENTREL.XIA.Configuration.Types.WindowsScheduledTask objects.

ToString()

Returns the name of the scheduled task - for example "Calibration Loader".

public override string ToString()

Returns

string

The name of the scheduled task.