IProfileNotification 介面

定義

警告

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

提供通知機制,讓追蹤服務通知執行階段追蹤基礎結構有關特定工作流程 TrackingProfileType 的變更。

public interface class IProfileNotification
public interface IProfileNotification
[System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")]
public interface IProfileNotification
type IProfileNotification = interface
[<System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")>]
type IProfileNotification = interface
Public Interface IProfileNotification
衍生
屬性

備註

注意

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

追蹤服務會管理執行階段追蹤基礎結構可使用的追蹤設定檔。 實作 IProfileNotification 的追蹤服務,可在特定工作流程 TrackingProfileType 變更或不再有效時,通知執行階段追蹤基礎結構。 執行階段追蹤基礎結構訂閱 ProfileUpdatedProfileRemoved 事件,並在這些事件引發時更新快取。 這樣可減少執行階段追蹤基礎結構向追蹤服務要求追蹤設定檔的次數。 請注意,執行階段追蹤基礎結構仍然使用追蹤服務的多載 GetProfile 方法,但不會常呼叫它們。

事件

ProfileRemoved
已淘汰.

在移除特定工作流程類型的 TrackingProfile 時發生。

ProfileUpdated
已淘汰.

在更新特定工作流程 TrackingProfileType 時發生。

適用於