AccessControlModification Enum

Definition

Specifies the type of access control modification to perform. This enumeration is used by methods of the ObjectSecurity class and its descendants.

C#
public enum AccessControlModification
Inheritance
AccessControlModification

Fields

Name Value Description
Add 0

Add the specified authorization rule to the access control list (ACL).

Set 1

Remove all authorization rules from the ACL, then add the specified authorization rule to the ACL.

Reset 2

Remove authorization rules that contain the same SID as the specified authorization rule from the ACL, and then add the specified authorization rule to the ACL.

Remove 3

Remove authorization rules that contain the same security identifier (SID) and access mask as the specified authorization rule from the ACL.

RemoveAll 4

Remove authorization rules that contain the same SID as the specified authorization rule from the ACL.

RemoveSpecific 5

Remove authorization rules that exactly match the specified authorization rule from the ACL.

Applies to

Toode Versioonid
.NET Core 1.0, Core 1.1, 6 (package-provided), 6, 7 (package-provided), 7, 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 5