Click or drag to resize
Task Scheduler Managed Class Library

Task Methods

The Task type exposes the following members.

Methods
 NameDescription
Public methodCompareTo 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.
Public methodDisposeReleases all resources used by this class.
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodExportExports the task to the specified file in XML.
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetAccessControl Gets a TaskSecurity object that encapsulates the specified type of access control list (ACL) entries for the task described by the current Task object.
Public methodGetAccessControl(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.
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetInstancesGets all instances of the currently running registered task.
Public methodGetLastRegistrationTime Gets the last registration time, looking first at the Date value and then looking for the most recent registration event in the Event Log.
Public methodGetRunTimesGets the times that the registered task is scheduled to run during a specified time.
Public methodGetSecurityDescriptorSddlFormGets the security descriptor for the task. Not available to Task Scheduler 1.0.
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Protected methodOnNotifyPropertyChangedCalled when a property has changed to notify any attached elements.
Public methodRegisterChanges 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.
Public methodCode exampleRunRuns the registered task immediately.
Public methodCode exampleRunExRuns the registered task immediately using specified flags and a session identifier.
Public methodCode exampleSetAccessControl Applies access control list (ACL) entries described by a TaskSecurity object to the file described by the current Task object.
Public methodSetSecurityDescriptorSddlFormSets the security descriptor for the task. Not available to Task Scheduler 1.0.
Public methodShowEditorDynamically tries to load the assembly for the editor and displays it as editable for this task.
Public methodShowPropertyPageShows the property page for the task (v1.0 only).
Public methodStopStops the registered task immediately.
Public methodToStringReturns a String that represents this instance.
(Overrides ObjectToString)
Top
See Also