public override bool IsSubsetOf(IPermission target)
{
// Pattern suggested by security engine
if (target == null)
{
return(access == NetworkInformationAccess.None);
}
NetworkInformationPermission other = target as NetworkInformationPermission;
if (other == null)
{
throw new ArgumentException(SR.GetString(SR.net_perm_target), "target");
}
if (unrestricted && !other.IsUnrestricted())
{
return(false);
}
else if ((access & other.access) == access)
{
return(true);
}
return(false);
}