Op Englesch liesen Editéieren

Deelen iwwer


ExecutionContext.Restore(ExecutionContext) Method

Definition

Restores a captured execution context on to the current thread.

C#
public static void Restore(System.Threading.ExecutionContext executionContext);

Parameters

executionContext
ExecutionContext

The ExecutionContext to set.

Exceptions

executionContext is null.

Remarks

To revert to the current execution context; capture it before calling Restore, and then call Restore it again.

Applies to

Produkt Versiounen
.NET 5, 6, 7, 8, 9, 10