ActivityExecutionContext 類別

定義

警告

The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*

表示 Activity 的執行環境。 此類別無法獲得繼承。

public ref class ActivityExecutionContext sealed : IDisposable, IServiceProvider
public sealed class ActivityExecutionContext : IDisposable, IServiceProvider
[System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")]
public sealed class ActivityExecutionContext : IDisposable, IServiceProvider
type ActivityExecutionContext = class
    interface IServiceProvider
    interface IDisposable
[<System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")>]
type ActivityExecutionContext = class
    interface IServiceProvider
    interface IDisposable
Public NotInheritable Class ActivityExecutionContext
Implements IDisposable, IServiceProvider
繼承
ActivityExecutionContext
屬性
實作

備註

注意

此資料討論已被汰換的類型及命名空間。 如需詳細資訊,請參閱 Windows Workflow Foundation 4.5 中即將淘汰的類型

表示 Activity 的執行環境。 這個類別會選擇性地向個別活動公開工作流程執行階段能力和服務。 此類別無法獲得繼承。

如需詳細資訊,請參閱 瞭解活動執行內容

欄位

CurrentExceptionProperty
已淘汰.

表示在執行工作流程執行個體期間發生的例外狀況。 這個屬性只有在活動為失敗狀態時才有值。

屬性

Activity
已淘汰.

取得目前在此執行內容中執行的 Activity

ContextGuid
已淘汰.

取得相關聯 ContextIDActivity

ExecutionContextManager
已淘汰.

取得與這個執行個體相關聯的 ActivityExecutionContextManager

方法

CancelActivity(Activity)
已淘汰.

由複合活動呼叫,以排程子活動的取消。 工作流程執行階段不允許取消不是 Executing 狀態的子活動。

CloseActivity()
已淘汰.

指出目前執行活動的工作流程執行階段應轉換為 Closed 狀態。

Equals(Object)
已淘汰.

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
ExecuteActivity(Activity)
已淘汰.

由複合活動呼叫,以排程子活動的執行。 工作流程執行階段不允許執行不是初始化狀態的子活動。

GetHashCode()
已淘汰.

做為預設雜湊函式。

(繼承來源 Object)
GetService(Type)
已淘汰.

傳回指定之型別的服務。

GetService<T>()
已淘汰.

傳回指定之 Type 的服務提供者。

GetType()
已淘汰.

取得目前執行個體的 Type

(繼承來源 Object)
MemberwiseClone()
已淘汰.

建立目前 Object 的淺層複製。

(繼承來源 Object)
ToString()
已淘汰.

傳回代表目前物件的字串。

(繼承來源 Object)
TrackData(Object)
已淘汰.

叫用相關聯之 Activity 的追蹤方法。

TrackData(String, Object)
已淘汰.

叫用相關聯之 Activity 的追蹤方法。

明確介面實作

IDisposable.Dispose()
已淘汰.

釋放 ActivityExecutionContext 所使用的所有資源。

適用於