System.Net.SocketPermission.Intersect Method

Returns the logical intersection between two System.Net.SocketPermission instances.

Syntax

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

Parameters

target
The System.Net.SocketPermission instance to intersect with the current instance.

Returns

The System.Net.SocketPermission instance that represents the intersection of two System.Net.SocketPermission instances. If the intersection is empty, the method returns null. If the target parameter is a null reference, the method returns null.

Exceptions

TypeReason
ArgumentException target is not of type System.Net.SocketPermission .

Remarks

The intersection of two permissions is a permission that helps to protect the resources and operations protected by both permissions. Specifically, it represents the minimum permission such that any demand that passes both permissions also passes 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.Net
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0