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

System.Net.SocketPermission.IsSubsetOf Method

Determines whether the current instance is a subset of the specified object. [Edit]

public override bool IsSubsetOf (System.Security.IPermission target)

Parameters

target
A System.Net.SocketPermission instance that is to be tested for the subset relationship. [Edit]

Returns

true if the current instance is a subset of target ; otherwise, false. If the current instance is unrestricted, and target is not, returns false. If target is unrestricted, returns true. If target is null and the current instance does not secure any resources and is not unrestricted, returns true. [Edit]

Exceptions

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

Remarks

The subset relationship is true if every resource secured by the current instance is secured by target .

Note:

This method overrides System.Security.CodeAccessPermission.IsSubsetOf(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