Mono Class Library: System.Net.WebPermission Overview | Members

System.Net.WebPermission.Intersect Method

Returns a new System.Net.WebPermission object that is the intersection of the current instance and the specified object. [Edit]

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

Parameters

target
A System.Net.WebPermission instance to intersect with the current instance. [Edit]

Returns

A new System.Net.WebPermission instance that represents the intersection of the current instance and target. If the intersection is empty, returns null. If the current instance is unrestricted, returns a copy of target. If target is unrestricted, returns a copy of the current instance. [Edit]

Exceptions

TypeReason
ArgumentNullExceptiontarget is null. [Edit]
ArgumentExceptiontarget is not null and is not of type System.Net.WebPermission . [Edit]

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.

[Edit]

Requirements

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