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



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

    Parameters

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

    Return Value

    A new permission that represents the intersection of the current permission and the specified permission. This new permission is null if the intersection is empty.
    Exceptions
    ExceptionDescription
    The target parameter is not null and is not an instance of the same class as the current permission.
    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 Intersect