TrackingProfileCache 類別

定義

警告:已過時

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

提供主應用程式可用於清除追蹤設定檔快取的方法。Provides a method that a host application can use to clear the tracking profile cache.

public ref class TrackingProfileCache abstract sealed
public static class TrackingProfileCache
[System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")]
public static class TrackingProfileCache
type TrackingProfileCache = class
[<System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")>]
type TrackingProfileCache = class
Public Class TrackingProfileCache
繼承
TrackingProfileCache
屬性

備註

注意

此資料討論已被汰換的類型及命名空間。This material discusses types and namespaces that are obsolete. 如需詳細資訊,請參閱 Windows Workflow Foundation 4.5 中即將淘汰的類型For more information, see Deprecated Types in Windows Workflow Foundation 4.5.

當工作流程執行階段引擎有一個或多個向它登錄的追蹤服務時,執行階段追蹤基礎結構必須判斷載入記憶體中的工作流程有無追蹤設定檔。When the workflow runtime engine has one or more tracking services registered with it, the runtime tracking infrastructure must determine whether tracking profiles exist for any workflow that is loaded into memory. 執行階段追蹤基礎結構會維護追蹤設定檔的快取,在它向每個追蹤服務要求工作流程的 TrackingProfile 之前會先檢查這個快取。The runtime tracking infrastructure maintains a cache of tracking profiles which it checks before it requests a TrackingProfile for the workflow from each tracking service. TrackingProfileCache 類別提供一個靜態方法 Clear,可供主應用程式用來清除追蹤設定檔快取。The TrackingProfileCache class provides a static method, Clear, which a host application can use to clear the tracking profile cache. 如此將會強制執行階段追蹤基礎結構從它登錄的追蹤服務中,為清除快取之後載入記憶體中的工作流程執行個體載入追蹤設定檔。This will force the runtime tracking infrastructure to load tracking profiles from its registered tracking services for any workflow instances that are loaded into memory after the cache is cleared.

注意

TrackingProfile 快取不支援僅標記工作流程。TrackingProfile caching is not supported for markup only workflows.

方法

Clear()

清除由所有追蹤設定檔的執行階段追蹤基礎結構維護的追蹤設定檔快取。Clears the tracking profile cache maintained by the runtime tracking infrastructure of all tracking profiles.

適用於