RunningTask Class

Provides the methods to get information from and control a running task.

Definition

Namespace: Microsoft.Win32.TaskScheduler
Assembly: Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.11.0
[XmlTypeAttribute(IncludeInSchema = false)]
public sealed class RunningTask : Task
Inheritance
Object    Task    RunningTask

Properties

CurrentActionGets the name of the current action that the running task is performing.
DefinitionGets the definition of the task.
(Inherited from Task)
EnabledGets or sets a Boolean value that indicates if the registered task is enabled.
(Inherited from Task)
EnginePIDGets the process ID for the engine (process) which is running the task.
FolderGets an instance of the parent folder.
(Inherited from Task)
InstanceGuidGets the GUID identifier for this instance of the task.
IsActiveGets a value indicating whether this task instance is active.
(Inherited from Task)
LastRunTimeGets the time the registered task was last run.
(Inherited from Task)
LastTaskResultGets the results that were returned the last time the registered task was run.
(Inherited from Task)
NameGets the name of the registered task.
(Inherited from Task)
NextRunTimeGets the time when the registered task is next scheduled to run.
(Inherited from Task)
NumberOfMissedRunsGets the number of times the registered task has missed a scheduled run.
(Inherited from Task)
PathGets the path to where the registered task is stored.
(Inherited from Task)
ReadOnly Gets a value indicating whether this task is read only. Only available if AllowReadOnlyTasks is true.
(Inherited from Task)
SecurityDescriptorGets or sets the security descriptor for the task.
(Inherited from Task)
Obsolete.
StateGets the operational state of the running task.
(Overrides TaskState)
TaskServiceGets or sets the TaskService that manages this task.
(Inherited from Task)
XmlGets the XML-formatted registration information for the registered task.
(Inherited from Task)

Methods

CompareTo Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
(Inherited from Task)
DisposeReleases all resources used by this class.
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
ExportExports the task to the specified file in XML.
(Inherited from Task)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetAccessControl Gets a TaskSecurity object that encapsulates the specified type of access control list (ACL) entries for the task described by the current Task object.
(Inherited from Task)
GetAccessControl(AccessControlSections) Gets a TaskSecurity object that encapsulates the specified type of access control list (ACL) entries for the task described by the current Task object.
(Inherited from Task)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetInstancesGets all instances of the currently running registered task.
(Inherited from Task)
GetLastRegistrationTime Gets the last registration time, looking first at the Date value and then looking for the most recent registration event in the Event Log.
(Inherited from Task)
GetRunTimesGets the times that the registered task is scheduled to run during a specified time.
(Inherited from Task)
GetSecurityDescriptorSddlFormGets the security descriptor for the task. Not available to Task Scheduler 1.0.
(Inherited from Task)
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
OnNotifyPropertyChangedCalled when a property has changed to notify any attached elements.
(Inherited from Task)
RefreshRefreshes all of the local instance variables of the task.
RegisterChanges Updates the task with any changes made to the Definition by calling RegisterTaskDefinition(String, TaskDefinition) from the currently registered folder using the currently registered name.
(Inherited from Task)
RunRuns the registered task immediately.
(Inherited from Task)
RunExRuns the registered task immediately using specified flags and a session identifier.
(Inherited from Task)
SetAccessControl Applies access control list (ACL) entries described by a TaskSecurity object to the file described by the current Task object.
(Inherited from Task)
SetSecurityDescriptorSddlFormSets the security descriptor for the task. Not available to Task Scheduler 1.0.
(Inherited from Task)
ShowEditorDynamically tries to load the assembly for the editor and displays it as editable for this task.
(Inherited from Task)
ShowPropertyPageShows the property page for the task (v1.0 only).
(Inherited from Task)
StopStops the registered task immediately.
(Inherited from Task)
ToStringReturns a String that represents this instance.
(Inherited from Task)

Events

PropertyChangedOccurs when a property value changes.
(Inherited from Task)

See Also