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 Value

Type: System.Workflow.Runtime.Tracking.ActivityTrackingLocationCollection
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.

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5, 3.0

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft