System.Net.DnsPermission.IsSubsetOf Method

Determines whether the current permission instance is a subset of the specified permission instance.

Syntax

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

Parameters

target
The second System.Net.DnsPermission instance to be tested for the subset relationship.

Returns

false if the current instance is unrestricted and target is either null or unrestricted; otherwise, true.

Remarks

The current System.Net.DnsPermission instance is a subset of the specified System.Net.DnsPermission instance if the current System.Net.DnsPermission instance specifies a set of operations that is wholly contained by the specified System.Net.DnsPermission instance.

If the DnsPermission.IsSubsetOf(System.Security.IPermission) method returns true, the current System.Net.DnsPermission instance allows no more access to DNS servers than does the specified System.Net.DnsPermission instance.

Requirements

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