MessageQueueAccessRights 枚举
定义
为特定于消息队列的操作指定一组对象特定的访问权限。Specifies a set of object-specific access rights for operations specific to Message Queuing.
此枚举有一个 FlagsAttribute 属性,允许按位组合成员值。
public enum class MessageQueueAccessRights
[System.Flags]
public enum MessageQueueAccessRights
[System.Flags]
[System.Serializable]
public enum MessageQueueAccessRights
[<System.Flags>]
type MessageQueueAccessRights =
[<System.Flags>]
[<System.Serializable>]
type MessageQueueAccessRights =
Public Enum MessageQueueAccessRights
- 继承
- 属性
字段
| ChangeQueuePermissions | 262144 | 修改队列权限的权限。The right to modify queue permissions. |
| DeleteJournalMessage | 8 | 从日记队列删除消息的权限。The right to delete messages from the journal queue. |
| DeleteMessage | 1 | 从队列删除消息的权限。The right to delete messages from the queue. |
| DeleteQueue | 65536 | 删除队列的权限。The right to delete the queue. |
| FullControl | 983103 | 针对队列的完全权限。Full rights to the queue. 枚举中其他所有权限的联合。A union of all other rights in the enumeration. |
| GenericRead | 131115 |
|
| GenericWrite | 131108 |
|
| GetQueuePermissions | 131072 | 读取队列权限的权限。The right to read queue permissions. |
| GetQueueProperties | 32 | 读取队列属性的权限。The right to read properties of the queue. |
| PeekMessage | 2 | 从队列查看消息的权限。The right to peek messages from the queue. |
| 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 | 3 | 从队列接收消息的权限。The right to receive messages from the queue. 这包括删除和查看消息的权限。This includes the rights to delete and peek messages. |
| SetQueueProperties | 16 | 修改队列属性的权限。The right to modify properties of the queue. |
| TakeQueueOwnership | 524288 | 取得队列所有权的权限。The right to take ownership of the queue. |
| WriteMessage | 4 | 向队列发送消息的权限。The right to send messages to the queue. |
注解
MessageQueueAccessRights枚举使你可以指定特定于消息队列对象的权限,例如接收、查看或写入消息,或设置队列属性。The MessageQueueAccessRights enumeration enables you to specify Message Queuing object-specific rights such as receiving, peeking, or writing messages, or setting queue properties. 它是两个枚举中的一个枚举 GenericAccessRights ,枚举将大量的读取、写入或执行功能映射到该枚举。It is one of two enumerations to which the GenericAccessRights enumeration maps extensive read, write, or execute abilities. 另外, StandardAccessRights 还可以指定对大多数对象通用的权限,例如,删除对象或读取安全描述符。The other, StandardAccessRights, enables you to specify rights common to most objects, for example, deleting the object or reading a security descriptor.
StandardAccessRights和均 MessageQueueAccessRights 提供了一个用于删除队列的成员。Both StandardAccessRights and MessageQueueAccessRights provide a member for deleting a queue. 应用程序的需求定义你使用哪组标志。The needs of the application define which set of flags you use.
与枚举关联的访问权限在 " MessageQueueAccessRights 队列属性" 窗口的 "权限" 框中列出。The access rights associated with the MessageQueueAccessRights enumeration are listed in the Permissions box of the queue properties window.