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, 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);

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

Produto Versões
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1