Export (0) Print
Expand All

MessageQueueAccessControlEntry Constructor (Trustee, MessageQueueAccessRights)

Initializes a new instance of the MessageQueueAccessControlEntry class, granting the specified Message Queuing access rights to the specified trustee.

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

public MessageQueueAccessControlEntry(
	Trustee trustee,
	MessageQueueAccessRights rights
)

Parameters

trustee
Type: System.Messaging.Trustee

A Trustee that specifies a user, group, computer, domain, or alias.

rights
Type: System.Messaging.MessageQueueAccessRights

A bitwise combination of the MessageQueueAccessRights values which defines the combination of rights to grant to the trustee.

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.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft