CompressedStack.Run(CompressedStack, ContextCallback, Object) Metod

Definition

Kör en metod i den angivna komprimerade stacken på den aktuella tråden.

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)

Parametrar

compressedStack
CompressedStack

Att CompressedStack ange.

callback
ContextCallback

En ContextCallback som representerar den metod som ska köras i den angivna säkerhetskontexten.

state
Object

Objektet som ska skickas till motringningsmetoden.

Attribut

Undantag

compressedStack är null.

Kommentarer

Den komprimerade stacken returneras till sitt tidigare tillstånd när metoden är klar.

Gäller för