CodeAccessPermission.IStackWalk.PermitOnly Method


Causes every Demand() for all objects except the current one that pass through the calling code to fail, even if code higher in the call stack has been granted permission to access other resources.

 virtual void System.Security.IStackWalk.PermitOnly() = System::Security::IStackWalk::PermitOnly;
void IStackWalk.PermitOnly ();
abstract member System.Security.IStackWalk.PermitOnly : unit -> unit
override this.System.Security.IStackWalk.PermitOnly : unit -> unit
Sub PermitOnly () Implements IStackWalk.PermitOnly



This member is an explicit interface member implementation. It can be used only when the CodeAccessPermission instance is cast to an IStackWalk interface.

Applies to