DnsPermission.IsSubsetOf(IPermission) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Determines whether the current permission instance is a subset of the specified permission instance.
public:
override bool IsSubsetOf(System::Security::IPermission ^ target);
public override bool IsSubsetOf(System.Security.IPermission target);
override this.IsSubsetOf : System.Security.IPermission -> bool
Public Overrides Function IsSubsetOf (target As IPermission) As Boolean
Parameters
- target
- IPermission
The second 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
.
Exceptions
target
is neither a DnsPermission nor null
.
Remarks
The current DnsPermission instance is a subset of the specified DnsPermission instance if the current DnsPermission instance specifies a set of operations that is wholly contained by the specified DnsPermission instance.
If the IsSubsetOf method returns true
, the current DnsPermission instance allows no more access to DNS servers than does the specified DnsPermission instance.