AccessControlEntryType Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Specifies whether to allow, deny, or revoke access rights for a trustee.
public enum class AccessControlEntryType
public enum AccessControlEntryType
type AccessControlEntryType =
Public Enum AccessControlEntryType
- Inheritance
Fields
Name | Value | Description |
---|---|---|
Allow | 1 | An access-allowed entry that causes the new rights to be added to any existing rights the trustee has. |
Set | 2 | An access-allowed entry that is similar to |
Deny | 3 | An access-denied entry that denies the specified rights in addition to any currently denied rights of the trustee. |
Revoke | 4 | An entry that removes all existing allowed or denied rights for the specified trustee. |
Remarks
When you use the AccessControlEntry class to specify a new access right for a trustee, you set its EntryType property to describe whether to grant the right or deny it. Furthermore, you can define whether the new right is appended to an existing list (if the trustee already exists in the context for which you are adding or removing access privileges) or if the new right overwrites and deletes any previously defined rights.
When creating a new Allow
entry, there might be a preexisting Deny
entry for the same trustee that takes precedence and must be addressed. Similarly, when creating a new Deny
entry, there might be an existing Allow
entry that takes precedence. For information about the order in which access rights are applied, see AccessControlList.