ActivityTrackingLocation 类

定义

注意

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

定义与根工作流实例的潜在执行路径中的活动状态事件对应的活动限定位置。 此类不能被继承。

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
属性

注解

注释

此材料讨论已过时的类型和命名空间。 有关详细信息,请参阅 Windows Workflow Foundation 4.50 中的 Deprecated Types。

每当活动执行状态发生更改时,工作流实例都会向运行时跟踪基础结构发出活动状态事件。 运行时跟踪基础结构可以在发生活动状态事件时向跟踪服务 ActivityTrackingRecord 发送跟踪服务。 通常,跟踪服务对工作流实例中发生的每个活动状态事件不感兴趣,但仅在与工作流实例中指定位置的某些活动关联的活动状态事件中。 通过 ActivityTrackingLocation 指定引用活动类型、一组活动状态更改事件以及一组更准确地限定引用活动类型的实例或实例的条件,定义此类位置的匹配参数。

注释

单个 ActivityTrackingLocation 实例可能引用工作流实例的潜在执行路径中的多个实际位置。

将对象添加到 > 中并为其定义匹配参数

必须通过设置或ActivityTypeName设置ActivityType来指定要匹配的引用活动类型。

可以设置为 MatchDerivedTypes 指定对从引用活动类型派生的活动的兴趣。

可以添加 ActivityExecutionStatus 值来 ExecutionStatusEvents 指定要匹配的活动状态事件。

可以添加 ActivityTrackingCondition 对象以 Conditions 仅针对特定条件指定对引用活动类型的兴趣。 例如,可以仅指定对引用活动类型的特定命名实例的兴趣。

构造函数

名称 说明
ActivityTrackingLocation()
已过时.

初始化 ActivityTrackingLocation 类的新实例。

ActivityTrackingLocation(String, Boolean, IEnumerable<ActivityExecutionStatus>)
已过时.

初始化具有具有指定非限定名称的引用活动类型的类的新实例,该实例 ActivityTrackingLocation 指定是否匹配从引用活动类型派生的活动,以及是否与指定的活动执行状态事件匹配。

ActivityTrackingLocation(String, IEnumerable<ActivityExecutionStatus>)
已过时.

初始化具有具有指定非限定名称的引用活动类型的类的新实例,该实例 ActivityTrackingLocation 与指定的活动执行状态事件匹配。

ActivityTrackingLocation(String)
已过时.

使用指定的活动名称初始化类的新实例 ActivityTrackingLocation

ActivityTrackingLocation(Type, Boolean, IEnumerable<ActivityExecutionStatus>)
已过时.

初始化具有指定引用活动类型的类的新实例,该实例 ActivityTrackingLocation 指定是否匹配从引用活动类型派生的活动,以及是否与指定的活动执行状态事件匹配。

ActivityTrackingLocation(Type, IEnumerable<ActivityExecutionStatus>)
已过时.

初始化具有指定引用活动类型的类的新实例 ActivityTrackingLocation ,并匹配指定的活动执行状态事件。

ActivityTrackingLocation(Type)
已过时.

使用指定的引用活动类型初始化类的新实例 ActivityTrackingLocation

属性

名称 说明
ActivityType
已过时.

获取或设置要匹配的引用活动的公共语言运行时 (CLR) 类型。

ActivityTypeName
已过时.

获取或设置位置的引用活动类型的非限定名称。

Conditions
已过时.

获取用于限定活动兴趣的条件的集合。

ExecutionStatusEvents
已过时.

获取可为此位置匹配的活动状态事件的列表。

MatchDerivedTypes
已过时.

获取或设置一个值,该值指示是否应匹配从引用活动类型派生的活动。

方法

名称 说明
Equals(Object)
已过时.

确定指定的对象是否等于当前对象。

(继承自 Object)
GetHashCode()
已过时.

用作默认哈希函数。

(继承自 Object)
GetType()
已过时.

获取当前实例的 Type

(继承自 Object)
MemberwiseClone()
已过时.

创建当前 Object的浅表副本。

(继承自 Object)
ToString()
已过时.

返回一个表示当前对象的字符串。

(继承自 Object)

适用于