共用方式為


CompressedStack.Run(CompressedStack, ContextCallback, Object) 方法

定義

在目前執行緒上的指定壓縮堆疊中執行方法。

public:
 static void Run(System::Threading::CompressedStack ^ compressedStack, System::Threading::ContextCallback ^ callback, System::Object ^ state);
public static void Run (System.Threading.CompressedStack compressedStack, System.Threading.ContextCallback callback, object? state);
public static void Run (System.Threading.CompressedStack compressedStack, System.Threading.ContextCallback callback, object state);
[System.Security.SecurityCritical]
public static void Run (System.Threading.CompressedStack compressedStack, System.Threading.ContextCallback callback, object state);
static member Run : System.Threading.CompressedStack * System.Threading.ContextCallback * obj -> unit
[<System.Security.SecurityCritical>]
static member Run : System.Threading.CompressedStack * System.Threading.ContextCallback * obj -> unit
Public Shared Sub Run (compressedStack As CompressedStack, callback As ContextCallback, state As Object)

參數

compressedStack
CompressedStack

要設定的 CompressedStack

callback
ContextCallback

ContextCallback,表示要在指定安全性內容中執行的方法。

state
Object

要傳遞至回呼 (Callback) 方法的物件。

屬性

例外狀況

compressedStacknull

備註

當方法完成時,壓縮堆疊會傳回其先前的狀態。

適用於