System.Security.FrameSecurityDescriptor.RevertAssert C# (CSharp) Method

RevertAssert() private method

private RevertAssert ( ) : void
return void
        internal void RevertAssert()
        {
            if (m_assertions != null)
            {
            m_assertions = null;
                DecrementAssertCount();
            }

                                      
            if (m_DeclarativeAssertions != null)
            {
                m_AssertFT = (CodeAccessSecurityEngine.DoesFullTrustMeanFullTrust() && m_DeclarativeAssertions.IsUnrestricted());;
             }
            else
                m_AssertFT = false;
        }
        

Usage Example

Example #1
0
        internal static void RevertAssert(ref StackCrawlMark stackMark)
        {
            FrameSecurityDescriptor securityObjectForFrame = SecurityRuntime.GetSecurityObjectForFrame(ref stackMark, false);

            if (securityObjectForFrame == null)
            {
                throw new InvalidOperationException(Environment.GetResourceString("ExecutionEngine_MissingSecurityDescriptor"));
            }
            securityObjectForFrame.RevertAssert();
        }
All Usage Examples Of System.Security.FrameSecurityDescriptor::RevertAssert