ActivityTrackingLocation Constructor (Type, Boolean, IEnumerable(ActivityExecutionStatus))

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

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

public ActivityTrackingLocation(
	Type activityType,
	bool matchDerivedTypes,
	IEnumerable<ActivityExecutionStatus> executionStatusEvents
)

Parameters

activityType
Type: System.Type

The 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.

Exception Condition
ArgumentNullException

activityType is a null reference (Nothing in Visual Basic).

-or-

executionStatusEvents is a null reference (Nothing).

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

Property

Value

ActivityTypeName

A null reference (Nothing).

ActivityType

The reference activity type specified by activityType.

Conditions

An empty TrackingConditionCollection.

ExecutionStatusEvents

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

MatchDerivedTypes

The value specified by matchDerivedTypes.

.NET Framework
Available since 3.0
Return to top
Show:
© 2016 Microsoft