Click or drag to resize
Task Scheduler Managed Class Library

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.
Inheritance Hierarchy
SystemObject
  Microsoft.Win32.TaskSchedulerTaskFolder

Namespace:  Microsoft.Win32.TaskScheduler
Assembly:  Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.10.1
Syntax
public sealed class TaskFolder : IDisposable, 
	IComparable<TaskFolder>
Request Example View Source

The TaskFolder type exposes the following members.

Properties
  NameDescription
Public propertyAllTasks
Public propertyName
Gets the name that is used to identify the folder that contains a task.
Public propertyParent
Gets the parent folder of this folder.
Public propertyPath
Gets the path to where the folder is stored.
Public propertySecurityDescriptor Obsolete.
Gets or sets the security descriptor of the task.
Public propertySubFolders
Gets all the subfolders in the folder.
Public propertyTasks
Gets a collection of all the tasks in the folder.
Public propertyTaskService
Gets or sets the TaskService that manages this task.
Top
Methods
  NameDescription
Public methodCreateFolder(String, TaskSecurity)
Creates a folder for related tasks. Not available to Task Scheduler 1.0.
Public methodCreateFolder(String, GenericSecurityDescriptor) Obsolete.
Creates a folder for related tasks. Not available to Task Scheduler 1.0.
Public methodCreateFolder(String, String, Boolean)
Creates a folder for related tasks. Not available to Task Scheduler 1.0.
Public methodDeleteFolder
Deletes a subfolder from the parent folder. Not available to Task Scheduler 1.0.
Public methodDeleteTask
Deletes a task from the folder.
Public methodDispose
Releases all resources used by this class.
Public methodEnumerateFolders
Returns an enumerable collection of folders that matches a specified filter and recursion option.
Public methodEnumerateTasks
Returns an enumerable collection of tasks that matches a specified filter and recursion option.
Public methodEquals
Determines whether the specified Object, is equal to this instance.
(Overrides ObjectEquals(Object).)
Protected methodFinalize
Allows 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 TaskFolder object.
Public methodGetAccessControl(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.
Public methodGetHashCode
Returns a hash code for this instance.
(Overrides ObjectGetHashCode.)
Public methodGetSecurityDescriptor Obsolete.
Gets the security descriptor for the folder. Not available to Task Scheduler 1.0.
Public methodGetSecurityDescriptorSddlForm
Gets the security descriptor for the folder. Not available to Task Scheduler 1.0.
Public methodGetTasks
Gets a collection of all the tasks in the folder whose name matches the optional filter.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodImportTask
Imports a Task from an XML file.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodCode exampleRegisterTask
Registers (creates) a new task in the folder using XML to define the task.
Public methodCode exampleRegisterTaskDefinition(String, TaskDefinition)
Registers (creates) a task in a specified location using a TaskDefinition instance to define a task.
Public methodCode exampleRegisterTaskDefinition(String, TaskDefinition, TaskCreation, String, String, TaskLogonType, String)
Registers (creates) a task in a specified location using a TaskDefinition instance to define a task.
Public methodSetAccessControl
Applies access control list (ACL) entries described by a TaskSecurity object to the file described by the current TaskFolder object.
Public methodSetSecurityDescriptor Obsolete.
Sets the security descriptor for the folder. Not available to Task Scheduler 1.0.
Public methodSetSecurityDescriptorSddlForm
Sets the security descriptor for the folder. Not available to Task Scheduler 1.0.
Public methodToString
Returns a String that represents this instance.
(Overrides ObjectToString.)
Top
See Also