Intersect Method

ResourcePermissionBase.Intersect Method (IPermission)

 

Creates and returns a permission object that is the intersection of the current permission object and a target permission object.

Namespace:   System.Security.Permissions
Assembly:  System (in System.dll)

public override IPermission Intersect(
	IPermission target
)

Parameters

target
Type: System.Security.IPermission

A permission object 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 object and the specified target. This object is null if the intersection is empty.

Exception Condition
ArgumentException

The target permission object is not of the same type as the current permission object.

The intersection of two permission objects is a permission that describes the set of operations they both hold in common. Specifically, it represents the minimum permissions required for a demand to pass both permissions.

.NET Framework
Available since 1.1
Return to top
Show:
© 2016 Microsoft