ActivityTrackingLocation Class

Note: This API is now obsolete.

Defines an activity-qualified location that corresponds to an activity status event in the potential execution path of a root workflow instance. This class cannot be inherited.

System.Object
  System.Workflow.Runtime.Tracking.ActivityTrackingLocation

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

[SerializableAttribute]
[ObsoleteAttribute("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")]
public sealed class ActivityTrackingLocation

The ActivityTrackingLocation type exposes the following members.

  NameDescription
Public methodActivityTrackingLocation()Initializes a new instance of the ActivityTrackingLocation class.
Public methodActivityTrackingLocation(String)Initializes a new instance of the ActivityTrackingLocation class by using the specified activity name.
Public methodActivityTrackingLocation(Type)Initializes a new instance of the ActivityTrackingLocation class by using the specified reference activity type.
Public methodActivityTrackingLocation(String, IEnumerable<ActivityExecutionStatus>)Initializes a new instance of the ActivityTrackingLocation class that has a reference activity type with the specified unqualified name and that matches the specified activity execution status events.
Public methodActivityTrackingLocation(Type, IEnumerable<ActivityExecutionStatus>)Initializes a new instance of the ActivityTrackingLocation class that has the specified reference activity type and matches the specified activity execution status events.
Public methodActivityTrackingLocation(String, Boolean, IEnumerable<ActivityExecutionStatus>)Initializes a new instance of the ActivityTrackingLocation class that has a reference activity type with the specified unqualified name, that specifies whether to match activities derived from the reference activity type, and that matches the specified activity execution status events.
Public methodActivityTrackingLocation(Type, Boolean, IEnumerable<ActivityExecutionStatus>)Initializes a new instance of the ActivityTrackingLocation class that has the specified reference activity type, that specifies whether to match activities derived from the reference activity type, and that matches the specified activity execution status events.
Top

  NameDescription
Public propertyActivityTypeGets or sets the common language runtime (CLR) type of the reference activity to be matched.
Public propertyActivityTypeNameGets or sets the unqualified name of the reference activity type for the location.
Public propertyConditionsGets a collection of conditions that are used to qualify interest in the activity.
Public propertyExecutionStatusEventsGets the list of activity status events that can be matched for this location.
Public propertyMatchDerivedTypesGets or sets a value that indicates whether activities derived from the reference activity type should be matched.
Top

  NameDescription
Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

NoteNote

This material discusses types and namespaces that are obsolete. For more information, see Deprecated Types in Windows Workflow Foundation 4.5.

Whenever the execution status of an activity changes, the workflow instance emits an activity status event to the runtime tracking infrastructure. The runtime tracking infrastructure can send the tracking service an ActivityTrackingRecord whenever an activity status event occurs. Usually, a tracking service is not interested in every activity status event that occurs in the workflow instance, but only in activity status events associated with certain kinds of activities at specified locations in the workflow instance. An ActivityTrackingLocation defines the matching parameters for such a location by specifying a reference activity type, a set of activity status change events, and a set of conditions that can more precisely qualify an instance or instances of the reference activity type.

NoteNote

A single ActivityTrackingLocation may refer to more than one actual location in the potential execution path of a workflow instance.

You add ActivityTrackingLocation objects to MatchingLocations and ExcludedLocations in order to define the match parameters for an ActivityTrackPoint in a TrackingProfile.

You must specify the reference activity type to be matched by setting either ActivityTypeName or ActivityType.

You may set MatchDerivedTypes to specify interest in activities derived from the reference activity type.

You may add ActivityExecutionStatus values to ExecutionStatusEvents to specify the activity status events to be matched.

You may add ActivityTrackingCondition objects to Conditions to specify interest in the reference activity type only for specific conditions. For example, you can specify interest in only a particular named instance of the reference activity type.

.NET Framework

Supported in: 4, 3.5, 3.0
Obsolete (compiler warning) in 4.5.2
Obsolete (compiler warning) in 4.5.1
Obsolete (compiler warning) in 4.5

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.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft