System.Messaging Reference (Document! X Sample)
System.Messaging Namespace / MessageQueue Class / SetPermissions Method / SetPermissions(AccessControlList) Method
A AccessControlList that contains one or more access control entries that specify the trustees and the permissions to grant.



In This Topic
    SetPermissions(AccessControlList) Method
    In This Topic
    Assigns access rights to the queue based on the contents of an access control list.
    Syntax
    'Declaration
     
    
    Public Overloads Sub SetPermissions( _
       ByVal dacl As AccessControlList _
    ) 
    'Usage
     
    
    Dim instance As MessageQueue
    Dim dacl As AccessControlList
     
    instance.SetPermissions(dacl)
    public void SetPermissions( 
       AccessControlList dacl
    )
    public:
    void SetPermissions( 
       AccessControlList^ dacl
    ) 

    Parameters

    dacl
    A AccessControlList that contains one or more access control entries that specify the trustees and the permissions to grant.
    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