Click or drag to resize
Task Scheduler Managed Class Library

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.12.0
Syntax
C#
protected override void Persist(
	string name,
	AccessControlSections includeSections = AccessControlSections.Access|AccessControlSections.Owner|AccessControlSections.Group
)
Request Example View Source

Parameters

name  String
The name used to retrieve the persisted information.
includeSections  AccessControlSections  (Optional)
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