System.Net.NetworkInformation.NetworkInformationPermission.IsUnrestricted C# (CSharp) Method

IsUnrestricted() public method

public IsUnrestricted ( ) : bool
return bool
        public bool IsUnrestricted() => true;
        public override IPermission Copy() => this;

Usage Example

示例#1
0
        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);
        }
All Usage Examples Of System.Net.NetworkInformation.NetworkInformationPermission::IsUnrestricted