Mono Class Library: System.Security.CodeAccessPermission Overview | Members

System.Security.CodeAccessPermission.Intersect Method

Returns a System.Security.CodeAccessPermission object that is the intersection of the current instance and the specified object.

public abstract IPermission Intersect (IPermission target)

Parameters

target
A System.Security.CodeAccessPermission instance to intersect with the current instance.

Returns

A new System.Security.CodeAccessPermission instance that represents the intersection of the current instance and target . If the intersection is empty or target is null, returns null.

Exceptions

TypeReason
ArgumentExceptiontarget is not null and is not a System.Security.CodeAccessPermission object.

Remarks

Note: This method is implemented to support the System.Security.IPermission interface.

Operation
As described above.

Note to Inheritors
Override this method to provide a mechanism for creating an intersection of two System.Security.IPermission objects that are of the same type and are derived from System.Security.CodeAccessPermission .

Usage
The intersection of two permissions is a permission that secures the resources and operations secured by both permissions. Specifically, it represents the minimum permission such that any demand that passes both permissions will also pass their intersection.

Requirements

Namespace: System.Security
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0