Export (0) Print
Expand All
Expand Minimize

MessageQueueAccessRights Enumeration

Specifies a set of object-specific access rights for operations specific to Message Queuing.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

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

[FlagsAttribute]
public enum MessageQueueAccessRights

Member nameDescription
ChangeQueuePermissionsThe right to modify queue permissions.
DeleteJournalMessageThe right to delete messages from the journal queue.
DeleteMessageThe right to delete messages from the queue.
DeleteQueueThe right to delete the queue.
FullControlFull rights to the queue. A union of all other rights in the enumeration.
GenericReadA combination of GetQueueProperties, GetQueuePermissions, ReceiveMessage, and ReceiveJournalMessage.
GenericWriteA combination of GetQueueProperties, GetQueuePermissions, and WriteMessage.
GetQueuePermissionsThe right to read queue permissions.
GetQueuePropertiesThe right to read properties of the queue.
PeekMessageThe right to peek messages from the queue.
ReceiveJournalMessageThe right to receive messages from the journal queue. This includes the rights to delete and peek messages from the journal queue.
ReceiveMessageThe right to receive messages from the queue. This includes the rights to delete and peek messages.
SetQueuePropertiesThe right to modify properties of the queue.
TakeQueueOwnershipThe right to take ownership of the queue.
WriteMessageThe right to send messages to the queue.

The MessageQueueAccessRights enumeration enables you to specify Message Queuing object-specific rights such as receiving, peeking, or writing messages, or setting queue properties. It is one of two enumerations to which the GenericAccessRights enumeration maps extensive read, write, or execute abilities. The other, StandardAccessRights, enables you to specify rights common to most objects, for example, deleting the object or reading a security descriptor.

Both StandardAccessRights and MessageQueueAccessRights provide a member for deleting a queue. The needs of the application define which set of flags you use.

The access rights associated with the MessageQueueAccessRights enumeration are listed in the Permissions box of the queue properties window.

.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