ActivityTrackingLocation 类

定义

注意

The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*

定义与根工作流实例的可能执行路径中的某个活动状态事件相对应的活动限定位置。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.

public ref class ActivityTrackingLocation sealed
[System.Serializable]
public sealed class ActivityTrackingLocation
[System.Serializable]
[System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")]
public sealed class ActivityTrackingLocation
[<System.Serializable>]
type ActivityTrackingLocation = class
[<System.Serializable>]
[<System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")>]
type ActivityTrackingLocation = class
Public NotInheritable Class ActivityTrackingLocation
继承
ActivityTrackingLocation
属性

注解

备注

本材料讨论的类型和命名空间已废弃不用。This material discusses types and namespaces that are obsolete. 有关详细信息,请参阅 Windows Workflow Foundation 4.5 中弃用的类型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. 当发生活动状态事件时,运行时跟踪基础结构可以向跟踪服务发送 ActivityTrackingRecordThe 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. ActivityTrackingLocation 通过指定以下各项为此类位置定义匹配参数:引用活动类型、一组活动状态更改事件,以及一组可对引用活动类型的一个或多个实例加以更精确限定的条件。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.

备注

单一 ActivityTrackingLocation 可以引用工作流实例的可能执行路径中的多个实际位置。A single ActivityTrackingLocation may refer to more than one actual location in the potential execution path of a workflow instance.

可以将 ActivityTrackingLocation 对象添加到 MatchingLocationsExcludedLocations,以便为 ActivityTrackPoint 中的 TrackingProfile 定义匹配参数。You add ActivityTrackingLocation objects to MatchingLocations and ExcludedLocations in order to define the match parameters for an ActivityTrackPoint in a TrackingProfile.

必须通过设置 ActivityTypeNameActivityType 来指定要匹配的引用活动类型。You must specify the reference activity type to be matched by setting either ActivityTypeName or ActivityType.

您可以设置 MatchDerivedTypes,以指定对派生自引用活动类型的活动的关注。You may set MatchDerivedTypes to specify interest in activities derived from the reference activity type.

您可以将 ActivityExecutionStatus 值添加到 ExecutionStatusEvents 以指定要匹配的活动状态事件。You may add ActivityExecutionStatus values to ExecutionStatusEvents to specify the activity status events to be matched.

您可以将 ActivityTrackingCondition 对象添加到 Conditions 以指定仅关注特定条件的引用活动类型。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.

构造函数

ActivityTrackingLocation()

初始化 ActivityTrackingLocation 类的新实例。Initializes a new instance of the ActivityTrackingLocation class.

ActivityTrackingLocation(String)

使用指定的活动名称初始化 ActivityTrackingLocation 类的新实例。Initializes a new instance of the ActivityTrackingLocation class by using the specified activity name.

ActivityTrackingLocation(String, Boolean, IEnumerable<ActivityExecutionStatus>)

初始化 ActivityTrackingLocation 类的一个新实例,该类包含具有指定非限定名称的引用活动类型,指定是否与派生自引用活动类型的活动相匹配,并与指定的活动执行状态事件相匹配。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.

ActivityTrackingLocation(String, IEnumerable<ActivityExecutionStatus>)

初始化 ActivityTrackingLocation 类的一个新实例,该类包含一个具有指定非限定名称的引用活动类型,并与指定的活动执行状态事件相匹配。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.

ActivityTrackingLocation(Type)

使用指定的引用活动类型初始化 ActivityTrackingLocation 类的新实例。Initializes a new instance of the ActivityTrackingLocation class by using the specified reference activity type.

ActivityTrackingLocation(Type, Boolean, IEnumerable<ActivityExecutionStatus>)

初始化 ActivityTrackingLocation 类的一个新实例,该类具有指定的引用活动类型,指定是否与派生自引用活动类型的活动相匹配,并与指定活动执行状态事件相匹配。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.

ActivityTrackingLocation(Type, IEnumerable<ActivityExecutionStatus>)

初始化 ActivityTrackingLocation 类的一个新实例,该类具有指定引用活动类型,并与指定的活动执行状态事件相匹配。Initializes a new instance of the ActivityTrackingLocation class that has the specified reference activity type and matches the specified activity execution status events.

属性

ActivityType

获取或设置要匹配的引用活动的公共语言运行时 (CLR) 类型。Gets or sets the common language runtime (CLR) type of the reference activity to be matched.

ActivityTypeName

获取或设置位置的引用活动类型的非限定名称。Gets or sets the unqualified name of the reference activity type for the location.

Conditions

获取一个条件集合,这些条件用于限定对活动的关注。Gets a collection of conditions that are used to qualify interest in the activity.

ExecutionStatusEvents

获取可为此位置匹配的活动状态事件的列表。Gets the list of activity status events that can be matched for this location.

MatchDerivedTypes

获取或设置一个值,该值指示是否应匹配派生自引用活动类型的活动。Gets or sets a value that indicates whether activities derived from the reference activity type should be matched.

方法

Equals(Object)

确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(继承自 Object)

适用于