System.Messaging Reference (Document! X Sample)
SetPermissions(MessageQueueAccessControlEntry) Method



System.Messaging Namespace > MessageQueue Class > SetPermissions Method : SetPermissions(MessageQueueAccessControlEntry) Method
A MessageQueueAccessControlEntry that specifies a user, an access type, and a permission type.
Assigns access rights to the queue based on the contents of an access control entry.
Syntax
'Declaration
 
Public Overloads Sub SetPermissions( _
   ByVal ace As MessageQueueAccessControlEntry _
) 
'Usage
 
Dim instance As MessageQueue
Dim ace As MessageQueueAccessControlEntry
 
instance.SetPermissions(ace)
public void SetPermissions( 
   MessageQueueAccessControlEntry ace
)
public:
void SetPermissions( 
   MessageQueueAccessControlEntry^ ace
) 

Parameters

ace
A MessageQueueAccessControlEntry that specifies a user, an access type, and a permission type.
Exceptions
ExceptionDescription
An error occurred when accessing a Message Queuing method.
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

MessageQueue Class
MessageQueue Members
Overload List