MessageQueueAccessControlEntry Constructor (Trustee, MessageQueueAccessRights)
Initializes a new instance of the MessageQueueAccessControlEntry class, granting the specified Message Queuing access rights to the specified trustee.
Assembly: System.Messaging (in System.Messaging.dll)
public MessageQueueAccessControlEntry( Trustee trustee, MessageQueueAccessRights rights )
Use this overload of the constructor to grant rights to the specified trustee. The rights you specify in the rights parameter are a bitwise combination of members of the MessageQueueAccessRights bitflag, which includes such rights as receiving messages, deleting queues, and setting queue properties. The constructor uses the rights you pass in to set this instance's MessageQueueAccessRights property.
Pass this instance of MessageQueueAccessControlEntry directly into an overload of the SetPermissions method to grant rights only to this trustee, or add this instance to a AccessControlList before calling SetPermissions to grant or deny rights to multiple trustees at once.