Export (0) Print
Expand All

ActivityTrackingLocation Constructor (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.

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

public ActivityTrackingLocation(
	string activityTypeName,
	bool matchDerivedTypes,
	IEnumerable<ActivityExecutionStatus> executionStatusEvents
)

Parameters

activityTypeName
Type: System.String

The unqualified name of the common language runtime (CLR) type of an activity.

matchDerivedTypes
Type: System.Boolean

true if activities derived from the reference activity type should be matched; otherwise, false.

executionStatusEvents
Type: System.Collections.Generic.IEnumerable<ActivityExecutionStatus>

A collection that contains one or more of the ActivityExecutionStatus values.

ExceptionCondition
ArgumentNullException

activityTypeName is a null reference (Nothing in Visual Basic)

-or-

executionStatusEvents is a null reference (Nothing).

You must specify the unqualified name of the reference activity type. For example, the unqualified name of the CLR type of a CodeActivity activity is"CodeActivity".

The following table shows the initial property values for an instance of ActivityTrackingLocation.

Property

Value

ActivityTypeName

The unqualified name specified by activityTypeName of the reference activity type.

ActivityType

A null reference (Nothing).

Conditions

An empty TrackingConditionCollection.

ExecutionStatusEvents

A List<T> that contains the ActivityExecutionStatus values specified by executionStatusEvents.

MatchDerivedTypes

The value specified by matchDerivedTypes.

.NET Framework

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