HostExecutionContextManager 类

定义

提供使公共语言运行时宿主可以参与执行上下文的流动(或移植)的功能。Provides the functionality that allows a common language runtime host to participate in the flow, or migration, of the execution context.

public ref class HostExecutionContextManager
public class HostExecutionContextManager
type HostExecutionContextManager = class
Public Class HostExecutionContextManager
继承
HostExecutionContextManager

注解

如果当前 AppDomainManager 在其 HostExecutionContextManager 属性中引用了某个 HostExecutionContextManager,则公共语言运行时将在每次调用该 ExecutionContext.Run 方法时调用该管理器,以允许主机参与执行上下文的流中。If the current AppDomainManager has a reference to a HostExecutionContextManager in its HostExecutionContextManager property, then the common language runtime calls the manager every time a call to the ExecutionContext.Run method occurs, to allow the host to participate in the flow of the execution context.

构造函数

HostExecutionContextManager()

初始化 HostExecutionContextManager 类的新实例。Initializes a new instance of the HostExecutionContextManager class.

方法

Capture()

从当前线程捕获宿主执行上下文。Captures the host execution context from the current thread.

Equals(Object)

确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
Revert(Object)

将宿主执行上下文还原为其以前的状态。Restores the host execution context to its prior state.

SetHostExecutionContext(HostExecutionContext)

将当前宿主执行上下文设置为指定的宿主执行上下文。Sets the current host execution context to the specified host execution context.

ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(继承自 Object)

适用于