 | TaskFolderCreateFolder Method (String, GenericSecurityDescriptor) |
Note: This API is now obsolete.
Creates a folder for related tasks. Not available to Task Scheduler 1.0.
Namespace:
Microsoft.Win32.TaskScheduler
Assembly:
Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.10.1
Syntax[ObsoleteAttribute("This method will be removed in deference to the CreateFolder(string, TaskSecurity) method.")]
public TaskFolder CreateFolder(
string subFolderName,
GenericSecurityDescriptor sd
)
<ObsoleteAttribute("This method will be removed in deference to the CreateFolder(string, TaskSecurity) method.")>
Public Function CreateFolder (
subFolderName As String,
sd As GenericSecurityDescriptor
) As TaskFolder
public:
[ObsoleteAttribute(L"This method will be removed in deference to the CreateFolder(string, TaskSecurity) method.")]
TaskFolder^ CreateFolder(
String^ subFolderName,
GenericSecurityDescriptor^ sd
)
Request Example
View SourceParameters
- subFolderName
- Type: SystemString
The name used to identify the folder. If "FolderName\SubFolder1\SubFolder2" is specified, the entire folder tree will be created if the folders do not exist. This parameter can be a relative path to the current TaskFolder instance. The root task folder is specified with a backslash (\). An example of a task folder path, under the root task folder, is \MyTaskFolder. The '.' character cannot be used to specify the current task folder and the '..' characters cannot be used to specify the parent task folder in the path. - sd
- Type: System.Security.AccessControlGenericSecurityDescriptor
The security descriptor associated with the folder.
Return Value
Type:
TaskFolderA
TaskFolder instance that represents the new subfolder.
See Also