MessageQueueAccessRights MessageQueueAccessRights MessageQueueAccessRights MessageQueueAccessRights Enum


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.

public enum class MessageQueueAccessRights
public enum MessageQueueAccessRights
type MessageQueueAccessRights = 
Public Enum MessageQueueAccessRights


ChangeQueuePermissions ChangeQueuePermissions ChangeQueuePermissions ChangeQueuePermissions 262144

The right to modify queue permissions.

DeleteJournalMessage DeleteJournalMessage DeleteJournalMessage DeleteJournalMessage 8

The right to delete messages from the journal queue.

DeleteMessage DeleteMessage DeleteMessage DeleteMessage 1

The right to delete messages from the queue.

DeleteQueue DeleteQueue DeleteQueue DeleteQueue 65536

The right to delete the queue.

FullControl FullControl FullControl FullControl 983103

Full rights to the queue. A union of all other rights in the enumeration.

GenericRead GenericRead GenericRead GenericRead 131115

A combination of GetQueueProperties, GetQueuePermissions, ReceiveMessage, and ReceiveJournalMessage.

GenericWrite GenericWrite GenericWrite GenericWrite 131108

A combination of GetQueueProperties, GetQueuePermissions, and WriteMessage.

GetQueuePermissions GetQueuePermissions GetQueuePermissions GetQueuePermissions 131072

The right to read queue permissions.

GetQueueProperties GetQueueProperties GetQueueProperties GetQueueProperties 32

The right to read properties of the queue.

PeekMessage PeekMessage PeekMessage PeekMessage 2

The right to peek messages from the queue.

ReceiveJournalMessage ReceiveJournalMessage ReceiveJournalMessage ReceiveJournalMessage 10

The right to receive messages from the journal queue. This includes the rights to delete and peek messages from the journal queue.

ReceiveMessage ReceiveMessage ReceiveMessage ReceiveMessage 3

The right to receive messages from the queue. This includes the rights to delete and peek messages.

SetQueueProperties SetQueueProperties SetQueueProperties SetQueueProperties 16

The right to modify properties of the queue.

TakeQueueOwnership TakeQueueOwnership TakeQueueOwnership TakeQueueOwnership 524288

The right to take ownership of the queue.

WriteMessage WriteMessage WriteMessage WriteMessage 4

The 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.

Applies to

See also