Deny() static private method

static private Deny ( CodeAccessPermission cap, System.Threading.StackCrawlMark &stackMark ) : void
cap CodeAccessPermission
stackMark System.Threading.StackCrawlMark
return void
Ejemplo n.º 1
0
        public void Deny()
        {
            CodeAccessSecurityEngine icase = SecurityManager.GetCodeAccessSecurityEngine();

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

            CodeAccessSecurityEngine.Deny(this, ref stackMark);
        }