System.Messaging Reference (Document! X Sample)
System.Messaging Namespace / MessageQueuePermission Class / Union Method
A permission object to combine with the current permission object. It must be of the same type as the current permission object.



In This Topic
    Union Method
    In This Topic
    When overridden in a derived class, creates a permission that is the union of the current permission and the specified permission.
    Syntax
    'Declaration
     
    
    Public Overrides NotOverridable Function Union( _
       ByVal target As IPermission _
    ) As IPermission
    'Usage
     
    
    Dim instance As MessageQueuePermission
    Dim target As IPermission
    Dim value As IPermission
     
    value = instance.Union(target)
    public override IPermission Union( 
       IPermission target
    )
    public:
    IPermission^ Union( 
       IPermission^ target
    ) override 

    Parameters

    target
    A permission object to combine with the current permission object. It must be of the same type as the current permission object.

    Return Value

    A new permission that represents the union of the current permission and the specified permission.
    Exceptions
    ExceptionDescription
    The other parameter is not null. This method is only supported at this level when passed null.
    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

    MessageQueuePermission Class
    MessageQueuePermission Members
    Base Implementation in Union