Export (0) Print
Expand All
Expand Minimize

AccessControlEntryType Enumeration

Specifies whether to allow, deny, or revoke access rights for a trustee.

Namespace:  System.Messaging
Assembly:  System.Messaging (in System.Messaging.dll)

'Declaration
Public Enumeration AccessControlEntryType

Member nameDescription
AllowAn access-allowed entry that causes the new rights to be added to any existing rights the trustee has.
DenyAn access-denied entry that denies the specified rights in addition to any currently denied rights of the trustee.
RevokeAn entry that removes all existing allowed or denied rights for the specified trustee.
SetAn access-allowed entry that is similar to Allow, except that the new entry allows only the specified rights. Using it discards any existing rights, including all existing access-denied entries for the trustee.

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.

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft