CodeAccessPermission.IStackWalk.Assert 方法

定义

断言调用代码可以访问当前权限对象所标识的资源,即使尚未对堆栈中的高级调用方授予访问该资源的权限。Asserts that the calling code can access the resource identified by the current permission object, even if callers higher in the stack have not been granted permission to access the resource.

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

实现

注解

此成员是显式接口成员的实现。This member is an explicit interface member implementation. 它只能在 CodeAccessPermission 实例被强制转换为 IStackWalk 接口时使用。It can be used only when the CodeAccessPermission instance is cast to an IStackWalk interface.

适用于