System.Security.CodeAccessPermission.IsSubsetOf C# (CSharp) Method

IsSubsetOf() public abstract method

public abstract IsSubsetOf ( IPermission target ) : bool
target IPermission
return bool
        public abstract bool IsSubsetOf(IPermission target);
        public void PermitOnly() { throw new PlatformNotSupportedException(); }

Same methods

CodeAccessPermission::IsSubsetOf ( System target ) : bool

Usage Example

        internal bool CheckDeny(CodeAccessPermission denied)
        {
            if (denied == null)
            {
                return(true);
            }
            Type type = denied.GetType();

            return(type != base.GetType() || this.Intersect(denied) == null || denied.IsSubsetOf(PermissionBuilder.Create(type)));
        }
All Usage Examples Of System.Security.CodeAccessPermission::IsSubsetOf