Export (0) Print
Expand All

ActivityTrackingLocation.Conditions Property

Gets a collection of conditions that are used to qualify interest in the activity.

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

public TrackingConditionCollection Conditions { get; }

Property Value

Type: System.Workflow.Runtime.Tracking.TrackingConditionCollection
A TrackingConditionCollection that contains conditions that are used to qualify interest in the activity. The default is an empty collection.

You can use Conditions to more precisely define the instance of the reference activity type to be matched. For example, if you want to match only CodeActivity activities with an Activity.Name equal to "MyCode", you can set ActivityTypeName to"CodeActivity" and add an ActivityTrackingCondition to Conditions that specifies that the Activity.Name property of the activity instance must be equal to "MyCode".

Every TrackingCondition in Conditions must be true and one of the ActivityExecutionStatus values in ExecutionStatusEvents must be matched for the ActivityTrackingLocation to be matched.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0
Show:
© 2015 Microsoft