Επεξεργασία

Κοινή χρήση μέσω


CompressedStack.Run(CompressedStack, ContextCallback, Object) Method

Definition

Runs a method in the specified compressed stack on the current thread.

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)

Parameters

compressedStack
CompressedStack

The CompressedStack to set.

callback
ContextCallback

A ContextCallback that represents the method to be run in the specified security context.

state
Object

The object to be passed to the callback method.

Attributes

Exceptions

compressedStack is null.

Remarks

The compressed stack is returned to its previous state when the method completes.

Applies to