CodeAccessPermission.IStackWalk.Demand 方法

定義

判斷執行階段期間呼叫堆疊中的所有呼叫端,是否已獲得目前權限物件所指定的權限。Determines at run time whether all callers in the call stack have been granted the permission specified by the current permission object.

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

實作

備註

這個成員是明確介面成員實作,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.

適用於