/// <summary> /// Initializes a new instance of the <see cref="TaskSecurity" /> class with the specified sections of the access control security rules from the specified task. /// </summary> /// <param name="task">The task.</param> /// <param name="sections">The sections of the ACL to retrieve.</param> public TaskSecurity(Task task, AccessControlSections sections = System.Security.AccessControl.AccessControlSections.Access | System.Security.AccessControl.AccessControlSections.Owner | System.Security.AccessControl.AccessControlSections.Group) : base(false) { this.SetSecurityDescriptorSddlForm(task.GetSecurityDescriptorSddlForm(TaskSecurity.Convert(sections))); }
/// <summary> /// Initializes a new instance of the <see cref="TaskSecurity" /> class with the specified sections of the access control security rules from the specified task. /// </summary> /// <param name="task">The task.</param> /// <param name="sections">The sections of the ACL to retrieve.</param> public TaskSecurity([NotNull] Task task, AccessControlSections sections = Task.defaultAccessControlSections) : base(false) { SetSecurityDescriptorSddlForm(task.GetSecurityDescriptorSddlForm(Convert(sections)), sections); }
/// <summary> /// Initializes a new instance of the <see cref="TaskSecurity" /> class with the specified sections of the access control security rules from the specified task. /// </summary> /// <param name="task">The task.</param> /// <param name="sections">The sections of the ACL to retrieve.</param> public TaskSecurity(Task task, AccessControlSections sections = System.Security.AccessControl.AccessControlSections.Access | System.Security.AccessControl.AccessControlSections.Owner | System.Security.AccessControl.AccessControlSections.Group) : base(false) { this.SetSecurityDescriptorSddlForm(task.GetSecurityDescriptorSddlForm(TaskSecurity.Convert(sections))); }