System.Messaging Reference (Document! X Sample)
MessageQueueAccessControlEntry Constructor(Trustee,MessageQueueAccessRights)



System.Messaging Namespace > MessageQueueAccessControlEntry Class > MessageQueueAccessControlEntry Constructor : MessageQueueAccessControlEntry Constructor(Trustee,MessageQueueAccessRights)
A Trustee that specifies a user, group, computer, domain, or alias.
A bitwise combination of the MessageQueueAccessRights values which defines the combination of rights to grant to the trustee.
Initializes a new instance of the MessageQueueAccessControlEntry class, granting the specified Message Queuing access rights to the specified trustee.
Syntax
'Declaration
 
Public Function New( _
   ByVal trustee As Trustee, _
   ByVal rights As MessageQueueAccessRights _
)
'Usage
 
Dim trustee As Trustee
Dim rights As MessageQueueAccessRights
 
Dim instance As New MessageQueueAccessControlEntry(trustee, rights)
public MessageQueueAccessControlEntry( 
   Trustee trustee,
   MessageQueueAccessRights rights
)
public:
MessageQueueAccessControlEntry( 
   Trustee^ trustee,
   MessageQueueAccessRights rights
)

Parameters

trustee
A Trustee that specifies a user, group, computer, domain, or alias.
rights
A bitwise combination of the MessageQueueAccessRights values which defines the combination of rights to grant to the trustee.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

MessageQueueAccessControlEntry Class
MessageQueueAccessControlEntry Members
Overload List