PermitOnly() static private method

static private PermitOnly ( CodeAccessPermission cap, System.Threading.StackCrawlMark &stackMark ) : void
cap CodeAccessPermission
stackMark System.Threading.StackCrawlMark
return void
Example #1
0
        public void PermitOnly()
        {
            CodeAccessSecurityEngine icase = SecurityManager.GetCodeAccessSecurityEngine();

            if (icase != null)
            {
                StackCrawlMark stackMark = StackCrawlMark.LookForMyCaller;
                icase.PermitOnly(this, ref stackMark);
            }
        }
        public void PermitOnly()
        {
            StackCrawlMark stackMark = StackCrawlMark.LookForMyCaller;

            CodeAccessSecurityEngine.PermitOnly(this, ref stackMark);
        }