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

IsSubsetOf() public abstract method

public abstract IsSubsetOf ( System target ) : bool
target System
return bool
    public abstract bool IsSubsetOf(System.Security.IPermission target);
    public void PermitOnly() { }

Same methods

CodeAccessPermission::IsSubsetOf ( IPermission 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