 | TaskSecurityPersist Method |
Saves the specified sections of the security descriptor associated with this
ObjectSecurity object to permanent storage. We recommend that the values of the
includeSections parameters passed to the constructor and persist methods be identical. For more information, see Remarks.
Namespace:
Microsoft.Win32.TaskScheduler
Assembly:
Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.10.1
Syntaxprotected override void Persist(
string name,
AccessControlSections includeSections = AccessControlSections.Access|AccessControlSections.Owner|AccessControlSections.Group
)
Protected Overrides Sub Persist (
name As String,
Optional includeSections As AccessControlSections = AccessControlSections.Access Or AccessControlSections.Owner Or AccessControlSections.Group
)
protected:
virtual void Persist(
String^ name,
AccessControlSections includeSections = AccessControlSections::Access|AccessControlSections::Owner|AccessControlSections::Group
) override
Request Example
View SourceParameters
- name
- Type: SystemString
The name used to retrieve the persisted information. - includeSections (Optional)
- Type: System.Security.AccessControlAccessControlSections
One of the AccessControlSections enumeration values that specifies the sections of the security descriptor (access rules, audit rules, owner, primary group) of the securable object to save.
See Also