Class WindowsScheduledTasks
- Namespace
- CENTREL.XIA.Configuration.Types
- Assembly
- CENTREL.XIA.Configuration.Types.dll
Represents the scheduled tasks configured on a Windows Vista or Windows Server 2008 or above machine.
public class WindowsScheduledTasks : BypassSection
- Inheritance
-
WindowsScheduledTasks
- Inherited Members
Constructors
WindowsScheduledTasks()
Initializes a new instance of the CENTREL.XIA.Configuration.Types.WindowsScheduledTasks class.
public WindowsScheduledTasks()
Properties
Items
Gets or sets the items in the collection.
public WindowsScheduledTaskCollection Items { get; set; }
Property Value
MicrosoftScheduledTasks
Gets or sets whether built-in Microsoft tasks have been included within the data.
public BooleanOption MicrosoftScheduledTasks { get; set; }
Property Value
Methods
FindTaskByFullPath(string)
Returns the scheduled task with the specified full task path, or null if no scheduled task with that full path is found.
public WindowsScheduledTask FindTaskByFullPath(string taskFullPath)
Parameters
taskFullPath
stringThe full path to the task - for example "\Microsoft\Windows.NET Framework.NET Framework NGEN v4.0.30319".
Returns
- WindowsScheduledTask
The scheduled task with the specified full task path.
FindTasksByPath(string)
Returns a colection of scheduled tasks found within the specified path - "\Microsoft\Windows.NET Framework".
public WindowsScheduledTaskCollection FindTasksByPath(string path)
Parameters
path
stringThe path for which scheduled tasks should be returned. If the path is empty all scheduled tasks are returned.
Returns
- WindowsScheduledTaskCollection
A collection of scheduled tasks found within the specified path.
FromXml(string)
Returns a CENTREL.XIA.Configuration.Types.WindowsScheduledTasks class from the specified XML.
public static WindowsScheduledTasks FromXml(string xml)
Parameters
xml
stringThe XML representation of the object.
Returns
- WindowsScheduledTasks
A CENTREL.XIA.Configuration.Types.WindowsScheduledTasks class.
GetChildPaths(string)
Returns the immediate child scheduled task folder paths for the given path.
public SerializableStringCollection GetChildPaths(string path)
Parameters
path
stringThe path for which the child task folders should be returned. If this is an empty string task folders in the root folder are returned.
Returns
- SerializableStringCollection
The child scheduled task folder paths for the given path.
GetFolderName(string)
Gets the name of the folder specified in the task path.
public static string GetFolderName(string taskPath)
Parameters
taskPath
stringThe path - for example "\Microsoft\Windows.NET Framework".
Returns
- string
The name of the folder - for example ".NET Framework".
ToString()
Returns the scheduled tasks as a human readable string - for example "4 Scheduled Tasks" or "{Not Documented}".
public override string ToString()
Returns
- string
The scheduled tasks as a human readable string.