CheckDemandNoThrow() 개인적인 메소드

private CheckDemandNoThrow ( CodeAccessPermission demand, PermissionToken permToken ) : bool
demand CodeAccessPermission
permToken PermissionToken
리턴 bool
예제 #1
0
        [System.Security.SecurityCritical]  // auto-generated
        internal bool CheckDemandNoThrow(CodeAccessPermission demand)
        {
            // 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");



            PermissionToken permToken = null;

            if (demand != null)
            {
                permToken = PermissionToken.GetToken(demand);
            }

            return(m_firstPermSetTriple.CheckDemandNoThrow(demand, permToken));
        }