System.Security.PermissionSetTriple.CheckSetDemandNoThrow C# (CSharp) Method

CheckSetDemandNoThrow() private method

private CheckSetDemandNoThrow ( PermissionSet demandSet ) : bool
demandSet PermissionSet
return bool
        internal bool CheckSetDemandNoThrow(PermissionSet demandSet)
        {
            BCLDebug.Assert(AssertSet == null, "AssertSet not null");

            return CodeAccessSecurityEngine.CheckSetHelper(GrantSet, RefusedSet, demandSet, s_emptyRMH, null, SecurityAction.Demand, false);
        }        
    }

Usage Example

Example #1
0
        [System.Security.SecurityCritical]  // auto-generated
        internal bool CheckSetDemandNoThrow(PermissionSet pSet)
        {
            // AppDomain permissions - no asserts. So there should only be one triple to work with
            Contract.Assert(m_permSetTriples == null && m_firstPermSetTriple != null, "More than one PermissionSetTriple encountered in AD PermissionListSet");


            return(m_firstPermSetTriple.CheckSetDemandNoThrow(pSet));
        }