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
Author
Gets or sets the Windows account that created the scheduled task - for example "CORP\Administrator".
public string Author { get; set; }
Property Value
Conditions
Gets or sets the conditions for this scheduled task running.
public WindowsScheduledTaskConditions Conditions { get; set; }
Property Value
Date
Gets or sets the date on which the task was registered.
public DateTime Date { get; set; }
Property Value
Description
Gets or sets the description of this scheduled task.
public string Description { get; set; }
Property Value
Enabled
Gets or sets whether this scheduled task is enabled.
public BooleanOption Enabled { get; set; }
Property Value
IsHidden
Gets or sets whether the task is hidden.
public BooleanOption IsHidden { get; set; }
Property Value
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
Principal
Gets or sets the user principal assigned to execute this task.
public WindowsScheduledTaskPrincipal Principal { get; set; }
Property Value
Settings
Gets or sets the settings for the scheduled task.
public WindowsScheduledTaskSettings Settings { get; set; }
Property Value
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
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
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
Triggers
Gets or sets the triggers configured for this scheduled task.
public WindowsScheduledTaskTriggers Triggers { get; set; }
Property Value
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
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
WindowsScheduledTaskThe 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.