TaskFolder Class

Provides the methods that are used to register (create) tasks in the folder, remove tasks from the folder, and create or remove subfolders from the folder.

Definition

Namespace: Microsoft.Win32.TaskScheduler
Assembly: Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.11.0
public sealed class TaskFolder : IDisposable, 
	IComparable<TaskFolder>
Inheritance
Object    TaskFolder
Implements
IComparableTaskFolder, IDisposable

Properties

AllTasks Gets a IEnumeratorT which enumerates all the tasks in this and all subfolders.
Name Gets the name that is used to identify the folder that contains a task.
Parent Gets the parent folder of this folder.
Path Gets the path to where the folder is stored.
SecurityDescriptor Gets or sets the security descriptor of the task.
Obsolete.
SubFolders Gets all the subfolders in the folder.
Tasks Gets a collection of all the tasks in the folder.
TaskService Gets or sets the TaskService that manages this task.

Methods

CreateFolder(String, TaskSecurity) Creates a folder for related tasks. Not available to Task Scheduler 1.0.
CreateFolder(String, GenericSecurityDescriptor) Creates a folder for related tasks. Not available to Task Scheduler 1.0.
Obsolete.
CreateFolder(String, String, Boolean) Creates a folder for related tasks. Not available to Task Scheduler 1.0.
DeleteFolder Deletes a subfolder from the parent folder. Not available to Task Scheduler 1.0.
DeleteTaskDeletes a task from the folder.
Dispose Releases all resources used by this class.
EnumerateFoldersReturns an enumerable collection of folders that matches a specified filter and recursion option.
EnumerateTasksReturns an enumerable collection of tasks that matches a specified filter and recursion option.
EqualsDetermines whether the specified Object, is equal to this instance.
(Overrides ObjectEquals(Object))
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 TaskFolder object.
GetAccessControl(AccessControlSections) Gets a TaskSecurity object that encapsulates the specified type of access control list (ACL) entries for the task folder described by the current TaskFolder object.
GetHashCodeReturns a hash code for this instance.
(Overrides ObjectGetHashCode)
GetSecurityDescriptorGets the security descriptor for the folder. Not available to Task Scheduler 1.0.
Obsolete.
GetSecurityDescriptorSddlForm Gets the security descriptor for the folder. Not available to Task Scheduler 1.0.
GetTasks Gets a collection of all the tasks in the folder whose name matches the optional filter.
GetTypeGets the Type of the current instance.
(Inherited from Object)
ImportTaskImports a Task from an XML file.
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
RegisterTask Registers (creates) a new task in the folder using XML to define the task.
RegisterTaskDefinition(String, TaskDefinition) Registers (creates) a task in a specified location using a TaskDefinition instance to define a task.
RegisterTaskDefinition(String, TaskDefinition, TaskCreation, String, String, TaskLogonType, String) Registers (creates) a task in a specified location using a TaskDefinition instance to define a task.
SetAccessControl Applies access control list (ACL) entries described by a TaskSecurity object to the file described by the current TaskFolder object.
SetSecurityDescriptor Sets the security descriptor for the folder. Not available to Task Scheduler 1.0.
Obsolete.
SetSecurityDescriptorSddlForm Sets the security descriptor for the folder. Not available to Task Scheduler 1.0.
ToString Returns a String that represents this instance.
(Overrides ObjectToString)

See Also