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 所使用的 Unmanaged 資源,並選擇性釋放 Managed 資源。 |
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, 8, 9, 10 |
.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, 4.8.1 |
.NET Standard | 2.0, 2.1 |