HostExecutionContext 类
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
在线程之间封装并传播宿主执行上下文。
public ref class HostExecutionContext : IDisposable
public ref class HostExecutionContext
C#
public class HostExecutionContext : IDisposable
C#
public class HostExecutionContext
type HostExecutionContext = class
interface IDisposable
type HostExecutionContext = class
Public Class HostExecutionContext
Implements IDisposable
Public Class HostExecutionContext
- 继承
-
HostExecutionContext
- 实现
HostExecutionContext是更大的ExecutionContext一部分。 主机上下文使用执行上下文迁移或流。
Host |
初始化 HostExecutionContext 类的新实例。 |
Host |
使用指定的状态初始化 HostExecutionContext 类的新实例。 |
State |
获取或设置宿主执行上下文的状态。 |
Create |
创建当前宿主执行上下文的副本。 |
Dispose() |
释放 HostExecutionContext 类的当前实例所使用的所有资源。 |
Dispose(Boolean) |
当在派生类中重写时,释放 WaitHandle 使用的非托管资源,并且可选择释放托管资源。 |
Equals(Object) |
确定指定对象是否等于当前对象。 (继承自 Object) |
Get |
作为默认哈希函数。 (继承自 Object) |
Get |
获取当前实例的 Type。 (继承自 Object) |
Memberwise |
创建当前 Object 的浅表副本。 (继承自 Object) |
To |
返回表示当前对象的字符串。 (继承自 Object) |
产品 | 版本 |
---|---|
.NET | Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7 |
.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 |
.NET Standard | 2.0, 2.1 |