Mono Class Library: System.Security.Permissions.SecurityPermission Overview | Members

System.Security.Permissions.SecurityPermission.Intersect Method

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

public override System.Security.IPermission Intersect (System.Security.IPermission target)

Parameters

target
A System.Security.Permissions.SecurityPermission object that is of the same type as the current instance to be intersected with the current instance.

Returns

A new System.Security.Permissions.SecurityPermission 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 of type System.Security.Permissions.SecurityPermission .

Remarks

Note:

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.

This method overrides System.Security.CodeAccessPermission.Intersect(System.Security.IPermission) and is implemented to support the System.Security.IPermission interface.

Requirements

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