TaskFolderSetSecurityDescriptor Method
Note: This API is now obsolete.
Sets the security descriptor for the folder. Not available to Task Scheduler 1.0.
Namespace: Microsoft.Win32.TaskSchedulerAssembly: Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.11.1
[ObsoleteAttribute("This method will be removed in deference to the SetAccessControl and SetSecurityDescriptorSddlForm methods.")]
public void SetSecurityDescriptor(
GenericSecurityDescriptor sd,
SecurityInfos includeSections = SecurityInfos.Owner|SecurityInfos.Group|SecurityInfos.DiscretionaryAcl
)
Parameters
- sd GenericSecurityDescriptor
- The security descriptor for the folder.
- includeSections SecurityInfos (Optional)
- Section(s) of the security descriptor to set.