Share via


ActivityTrackPoint.ExcludedLocations 屬性

定義

取得應由執行階段追蹤基礎結構排除在追蹤點外的位置集合。

public:
 property System::Workflow::Runtime::Tracking::ActivityTrackingLocationCollection ^ ExcludedLocations { System::Workflow::Runtime::Tracking::ActivityTrackingLocationCollection ^ get(); };
public System.Workflow.Runtime.Tracking.ActivityTrackingLocationCollection ExcludedLocations { get; }
member this.ExcludedLocations : System.Workflow.Runtime.Tracking.ActivityTrackingLocationCollection
Public ReadOnly Property ExcludedLocations As ActivityTrackingLocationCollection

屬性值

ActivityTrackingLocationCollection

ActivityTrackingLocationCollection,指定要排除在追蹤點外的位置。 預設為空集合。

備註

如果 ActivityTrackingLocation 中的任何 ExcludedLocations 與特定活動狀態事件相符,將不會比對追蹤點,而且不會傳送任何 ActivityTrackingRecord 至追蹤服務。 如果 ExcludedLocations 是空白,則沒有排除的位置。

您可以使用 ExcludedLocations 特別排除某些位置,不讓執行階段追蹤基礎結構追蹤。 例如,如果想要追蹤 CodeActivity 屬性為 "Code1" 的 CodeActivity 活動除外的所有 Name 活動,您可以定義比對所有 ActivityTrackingLocation 活動的 CodeActivity,並將其加入至 MatchingLocations。 然後,定義另一個 ActivityTrackingLocation 以比對 CodeActivity 屬性設定為 "Code1" 的 Name 活動,並將其加入至 ExcludedLocations。 然後,追蹤點將會比對 "Code1" 活動除外的所有 CodeActivity 活動。

適用於