Export (0) Print
Expand All

DnsPermission.Intersect Method

Creates a permission instance that is the intersection of the current permission instance and the specified permission instance.

Namespace:  System.Net
Assembly:  System (in System.dll)

abstract Intersect : 
        target:IPermission -> IPermission  
override Intersect : 
        target:IPermission -> IPermission

Parameters

target
Type: System.Security.IPermission

The DnsPermission instance to intersect with the current instance.

Return Value

Type: System.Security.IPermission
A DnsPermission instance that represents the intersection of the current DnsPermission instance with the specified DnsPermission instance, or a null reference (Nothing in Visual Basic) if the intersection is empty. If both the current instance and target are unrestricted, this method returns a new DnsPermission instance that is unrestricted; otherwise, it returns a null reference (Nothing in Visual Basic).

Implements

IPermission.Intersect(IPermission)

ExceptionCondition
ArgumentException

target is neither a DnsPermission nor a null reference (Nothing in Visual Basic).

The Intersect method returns a DnsPermission instance that allows the access defined by both the current DnsPermission instance and the specified DnsPermission instance. Any demand must pass both permissions to pass their intersection.

The following example creates a permission instance that is the intersection of the current permission instance and the specified permission instance.

No code example is currently available or this language may not be supported.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft