 | 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.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 SetAccessControl and SetSecurityDescriptorSddlForm methods.")]
public void SetSecurityDescriptor(
GenericSecurityDescriptor sd,
SecurityInfos includeSections = SecurityInfos.Owner|SecurityInfos.Group|SecurityInfos.DiscretionaryAcl
)
<ObsoleteAttribute("This method will be removed in deference to the SetAccessControl and SetSecurityDescriptorSddlForm methods.")>
Public Sub SetSecurityDescriptor (
sd As GenericSecurityDescriptor,
Optional includeSections As SecurityInfos = SecurityInfos.Owner Or SecurityInfos.Group Or SecurityInfos.DiscretionaryAcl
)
public:
[ObsoleteAttribute(L"This method will be removed in deference to the SetAccessControl and SetSecurityDescriptorSddlForm methods.")]
void SetSecurityDescriptor(
GenericSecurityDescriptor^ sd,
SecurityInfos includeSections = SecurityInfos::Owner|SecurityInfos::Group|SecurityInfos::DiscretionaryAcl
)
Request Example
View SourceParameters
- sd
- Type: System.Security.AccessControlGenericSecurityDescriptor
The security descriptor for the folder. - includeSections (Optional)
- Type: System.Security.AccessControlSecurityInfos
Section(s) of the security descriptor to set.
See Also