Intersect Method
Collapse the table of content
Expand the table of content

DBDataPermission.Intersect Method

Returns a new permission object representing the intersection of the current permission object and the specified permission object.

Namespace:  System.Data.Common
Assembly:  System.Data (in System.Data.dll)

public override IPermission Intersect(
	IPermission target
)

Parameters

target
Type: System.Security.IPermission
A permission object to intersect with the current permission object. It must be of the same type as the current permission object.

Return Value

Type: System.Security.IPermission
A new permission object that represents the intersection of the current permission object and the specified permission object. This new permission object is a null reference (Nothing in Visual Basic) if the intersection is empty.

Implements

IPermission.Intersect(IPermission)

ExceptionCondition
ArgumentException

The target parameter is not a null reference (Nothing in Visual Basic) and is not an instance of the same class as the current permission object.

The intersection of two permissions is a permission that describes the set of operations they both describe. Only a demand that passes both original permissions will pass the intersection.

.NET Framework

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

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

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

Community Additions

ADD
Show:
© 2016 Microsoft