GetSddlForm() public method

public GetSddlForm ( AccessControlSections includeSections ) : string
includeSections AccessControlSections
return string
示例#1
0
 /// <summary>
 ///   Sets the security descriptor for the folder. Not available to Task Scheduler 1.0.
 /// </summary>
 /// <param name="sd"> The security descriptor for the folder. </param>
 /// <param name="includeSections"> Section(s) of the security descriptor to set. </param>
 public void SetSecurityDescriptor(GenericSecurityDescriptor sd, AccessControlSections includeSections)
 {
     SetSecurityDescriptorSddlForm(sd.GetSddlForm(includeSections), includeSections);
 }
示例#2
0
 /// <summary>
 ///   Creates a folder for related tasks. Not available to Task Scheduler 1.0.
 /// </summary>
 /// <param name="subFolderName"> 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 <see
 ///    cref="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. </param>
 /// <param name="sd"> The security descriptor associated with the folder. </param>
 /// <returns> A <see cref="TaskFolder" /> instance that represents the new subfolder. </returns>
 public TaskFolder CreateFolder(string subFolderName, GenericSecurityDescriptor sd)
 {
     return CreateFolder(subFolderName, sd.GetSddlForm(AccessControlSections.All));
 }