System.Net.WebPermission.IsSubsetOf Method

Determines whether the current System.Net.WebPermission is a subset of the specified object.

Syntax

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

Parameters

target
The System.Net.WebPermission to compare to the current System.Net.WebPermission.

Returns

true if the current instance is a subset of the target parameter; otherwise, false. If the target is null, the method returns true for an empty current permission that is not unrestricted and false otherwise.

Exceptions

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

Remarks

If the current System.Net.WebPermission specifies a set of associated resources that is wholly contained by the target parameter, then the current System.Net.WebPermission is a subset of target. This method overrides WebPermission.IsSubsetOf(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