System.Messaging Reference (Document! X Sample)
System.Messaging Namespace / MessageQueuePermission Class / MessageQueuePermission Constructor / MessageQueuePermission Constructor(MessageQueuePermissionAccess,String,String,String)
One of the MessageQueuePermissionAccess values.
The name of the computer where the Message Queuing queue is located.
The queue description.
The queue category (Message Queuing type identifier).



In This Topic
    MessageQueuePermission Constructor(MessageQueuePermissionAccess,String,String,String)
    In This Topic
    Initializes a new instance of the MessageQueuePermission class with the specified access levels, computer to use, queue description, and queue category.
    Syntax
    'Declaration
     
    
    Public Function New( _
       ByVal permissionAccess As MessageQueuePermissionAccess, _
       ByVal machineName As String, _
       ByVal label As String, _
       ByVal category As String _
    )
    'Usage
     
    
    Dim permissionAccess As MessageQueuePermissionAccess
    Dim machineName As String
    Dim label As String
    Dim category As String
     
    Dim instance As New MessageQueuePermission(permissionAccess, machineName, label, category)

    Parameters

    permissionAccess
    One of the MessageQueuePermissionAccess values.
    machineName
    The name of the computer where the Message Queuing queue is located.
    label
    The queue description.
    category
    The queue category (Message Queuing type identifier).
    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