ActivityTrackPoint.ExcludedLocations Property

Gets the collection of locations that should be excluded from the track point by the runtime tracking infrastructure.

Namespace: System.Workflow.Runtime.Tracking
Assembly: System.Workflow.Runtime (in system.workflow.runtime.dll)

public ActivityTrackingLocationCollection ExcludedLocations { get; }
/** @property */
public ActivityTrackingLocationCollection get_ExcludedLocations ()

public function get ExcludedLocations () : ActivityTrackingLocationCollection

Not applicable.

Property Value

An ActivityTrackingLocationCollection that specifies locations to be excluded from the track point. The default is an empty collection.

If any ActivityTrackingLocation in ExcludedLocations is matched for a particular activity status event, the track point will not be matched and no ActivityTrackingRecord will be sent to the tracking service. If ExcludedLocations is empty, there are no excluded locations.

You can use ExcludedLocations to specifically exclude locations from being tracked by the runtime tracking infrastructure. For example, if you want to track all CodeActivity activities except the CodeActivity activity with an Name property of "Code1", you can define an ActivityTrackingLocation that matches all CodeActivity activities and add it to MatchingLocations. Then you can define another ActivityTrackingLocation that matches CodeActivity activities with an Name property set to "Code1" and add it to ExcludedLocations. The track point will then match all CodeActivity activities except the "Code1" activity.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0