MessageQueueInstaller.Permissions 属性
定义
获取或设置与队列关联的权限。Gets or sets permissions associated with the queue.
public:
property System::Messaging::AccessControlList ^ Permissions { System::Messaging::AccessControlList ^ get(); void set(System::Messaging::AccessControlList ^ value); };
[System.ComponentModel.Browsable(false)]
public System.Messaging.AccessControlList Permissions { get; set; }
[<System.ComponentModel.Browsable(false)>]
member this.Permissions : System.Messaging.AccessControlList with get, set
Public Property Permissions As AccessControlList
属性值
AccessControlList,包含一个或多个指定受信者和为队列授予的权限的访问控制项。A AccessControlList that contains one or more access control entries that specify the trustees and permissions to grant for the queue.
- 属性
注解
默认情况下,公用或专用队列的创建者具有 "完全控制" 权限,而 "域组" 有权获取队列属性、获取权限和写入队列。By default, the creator of a public or private queue has full control, and the domain group Everyone has permission to get queue properties, get permissions, and write to the queue. 消息队列依次访问每个权限列表项,直到找到适用于当前用户和当前尝试的操作的权限列表。Message Queuing accesses each permission list entry in turn until it finds one that applies to the current user and the current attempted action. 与操作系统权限一样,你明确拒绝用户的权限优先于你允许使用的权限。As with the operating system permissions, the rights that you specifically deny to a user take precedence over those you allow.
构造 Permissions 属性时,请将 AccessControlEntry 实例添加到集合中 AccessControlList 。When you construct the Permissions property, add AccessControlEntry instances to your AccessControlList collection. 构造每个访问控制项时,可以指定常规或标准访问权限。When you construct each access control entry, you can specify generic or standard access rights. 队列的权限可以是以下各项的任意组合:The rights to a queue can be any combination of the following:
删除Delete
读取安全Read Security
写入安全性Write Security
同步Synchronize
修改所有者Modify Owner
读取Read
写入Write
执行Execute
必需Required
全部All
无None
这些权限是一组可以使用按位 "或" 组合的位标志:These rights are a set of bit flags that you can combine using the bitwise OR:
完全控制Full Control
删除消息Delete Message
接收消息Receive Message
速览消息Peek Message
接收日志消息Receive Journal Message
获取队列属性Get Queue Properties
设置队列属性Set Queue Properties
获取权限Get Permissions
设置权限Set Permissions
获取队列所有权Take Queue Ownership
编写消息Write Message