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

要传递给该回调方法的对象。

属性

例外

compressedStacknull

注解

当 方法完成时,压缩堆栈将返回到其以前的状态。

适用于