HostExecutionContextManager.Revert(Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Restores the host execution context to its prior state.
public:
virtual void Revert(System::Object ^ previousState);
public virtual void Revert (object previousState);
[System.Security.SecurityCritical]
public virtual void Revert (object previousState);
abstract member Revert : obj -> unit
override this.Revert : obj -> unit
[<System.Security.SecurityCritical>]
abstract member Revert : obj -> unit
override this.Revert : obj -> unit
Public Overridable Sub Revert (previousState As Object)
Parameters
- previousState
- Object
The previous context state to revert to.
- Attributes
Exceptions
previousState
is null
.
-or-
previousState
was not created on the current thread.
-or-
previousState
is not the last state for the HostExecutionContext.
Remarks
previousState
must be the object returned by the SetHostExecutionContext method.
Applies to
Совместная работа с нами на GitHub
Источник этого содержимого можно найти на GitHub, где также можно создавать и просматривать проблемы и запросы на вытягивание. Дополнительные сведения см. в нашем руководстве для участников.