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
屬性
實作

備註

Note

此數據會討論已過時的類型和命名空間。 欲了解更多資訊,請參閱 Windows Workflow Foundation 4.5 中的 Deprecated Types。

代表 的執行環境 Activity。 此類別選擇性地將工作流程執行時的能力與服務暴露給個別活動。 此類別無法獲得繼承。

更多資訊請參閱 「理解活動執行上下文」。

欄位

名稱 Description
CurrentExceptionProperty
已淘汰.

代表在執行工作流程實例期間發生的例外。 此性質僅在活動處於斷層狀態時才有價值。

屬性

名稱 Description
Activity
已淘汰.

取得 Activity 目前在執行上下文中執行的 。

ContextGuid
已淘汰.

得到 ContextID 對應 Activity的 。

ExecutionContextManager
已淘汰.

理解 ActivityExecutionContextManager 與此事相關的情況。

方法

名稱 Description
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的 ,呼叫 track 方法

TrackData(String, Object)
已淘汰.

對應 Activity的 ,呼叫 track 方法

明確介面實作

名稱 Description
IDisposable.Dispose()
已淘汰.

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

適用於