HostExecutionContext HostExecutionContext HostExecutionContext HostExecutionContext Class

定義

在執行緒之間封裝及散佈主應用程式執行內容。Encapsulates and propagates the host execution context across threads.

public ref class HostExecutionContext : IDisposable
public class HostExecutionContext : IDisposable
type HostExecutionContext = class
    interface IDisposable
Public Class HostExecutionContext
Implements IDisposable
繼承
HostExecutionContextHostExecutionContextHostExecutionContextHostExecutionContext
實作

備註

HostExecutionContext屬於較大ExecutionContextThe HostExecutionContext is part of a larger ExecutionContext. 主應用程式內容會進行移轉,或流程,以執行內容。The host context migrates, or flows, with the execution context.

建構函式

HostExecutionContext() HostExecutionContext() HostExecutionContext() HostExecutionContext()

初始化 HostExecutionContext 類別的新執行個體。Initializes a new instance of the HostExecutionContext class.

HostExecutionContext(Object) HostExecutionContext(Object) HostExecutionContext(Object) HostExecutionContext(Object)

使用指定的狀態來初始化 HostExecutionContext 類別的新執行個體。Initializes a new instance of the HostExecutionContext class using the specified state.

屬性

State State State State

取得或設定主應用程式執行內容的狀態。Gets or sets the state of the host execution context.

方法

CreateCopy() CreateCopy() CreateCopy() CreateCopy()

建立目前主應用程式執行內容的複本。Creates a copy of the current host execution context.

Dispose() Dispose() Dispose() Dispose()

釋放 HostExecutionContext 類別目前的執行個體所使用的全部資源。Releases all resources used by the current instance of the HostExecutionContext class.

Dispose(Boolean) Dispose(Boolean) Dispose(Boolean) Dispose(Boolean)

當在衍生類別中覆寫時,釋放 WaitHandle 所使用的 Unmanaged 資源,並選擇性釋放 Managed 資源。When overridden in a derived class, releases the unmanaged resources used by the WaitHandle, and optionally releases the managed resources.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(Inherited from Object)

適用於