Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
MatchingLocations Property
Collapse the table of content
Expand the table of content

ActivityTrackPoint.MatchingLocations Property

Gets the collection of locations that should be included in matching for the track point by the runtime tracking infrastructure.

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

public ActivityTrackingLocationCollection MatchingLocations { get; }

Property Value

Type: System.Workflow.Runtime.Tracking.ActivityTrackingLocationCollection
An ActivityTrackingLocationCollection that specifies the locations to be matched for the track point. The default is an empty collection.

If MatchingLocations is empty, the track point cannot be matched by the runtime tracking infrastructure. You must add at least one ActivityTrackingLocation to MatchingLocations for the ActivityTrackPoint to participate in matching.

The track point will be matched if any ActivityTrackingLocation in MatchingLocations is matched by the runtime tracking infrastructure and no ActivityTrackingLocation in ExcludedLocations is matched.

The following example demonstrates accessing the MatchingLocations property. This example is from the TrackingProfileDesigner SDK sample. For more information, see Tracking Profile Designer Sample.

/// <summary>
/// Saves a tracking condition for an activity
/// </summary>
/// <param name="activity"></param>
/// <param name="key"></param>
/// <param name="member"></param>
/// <param name="op"></param>
/// <param name="value"></param>
internal void SaveTrackingCondition(Activity activity, ref ActivityTrackingCondition key, string member, ComparisonOperator op, string value)
    ActivityTrackPoint trackPoint = GetTrackPointForActivity(activity);
    if (trackPoint != null)
        if (key == null)
            key = new ActivityTrackingCondition();
        key.Member = member;
        key.Value = value;
        key.Operator = op;

.NET Framework

Supported in: 4, 3.5, 3.0

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

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

Community Additions

© 2015 Microsoft