System.Threading.HostExecutionContextManager.Revert Method

Restores the host execution context to its prior state.

Syntax

[System.Runtime.ConstrainedExecution.ReliabilityContract(System.Runtime.ConstrainedExecution.Consistency.WillNotCorruptState, System.Runtime.ConstrainedExecution.Cer.MayFail)]
public virtual void Revert (object previousState)

Parameters

previousState
The previous context state to revert to.

Remarks

previousState must be the object returned by the HostExecutionContextManager.SetHostExecutionContext(HostExecutionContext) method.

Requirements

Namespace: System.Threading
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0