System.Security.SecurityRuntime.RevertDeny C# (CSharp) Method

RevertDeny() static private method

static private RevertDeny ( System.Threading.StackCrawlMark &stackMark ) : void
stackMark System.Threading.StackCrawlMark
return void
        internal static void RevertDeny(ref StackCrawlMark stackMark)
        {
            FrameSecurityDescriptor secObj = GetSecurityObjectForFrame(ref stackMark, false);
            if (secObj != null)
            {
                secObj.RevertDeny();
            }
            else if (SecurityManager._IsSecurityOn())
                throw new ExecutionEngineException( Environment.GetResourceString( "ExecutionEngine_MissingSecurityDescriptor" ) );
        }
        

Usage Example

Example #1
0
        /// <include file='doc\CodeAccessPermission.uex' path='docs/doc[@for="CodeAccessPermission.RevertDeny"]/*' />
        public static void RevertDeny()
        {
            SecurityRuntime isr = SecurityManager.GetSecurityRuntime();

            if (isr != null)
            {
                StackCrawlMark stackMark = StackCrawlMark.LookForMyCaller;
                isr.RevertDeny(ref stackMark);
            }
        }
All Usage Examples Of System.Security.SecurityRuntime::RevertDeny