Editare

Partajați prin


ActivityTrackingLocation Constructors

Definition

Initializes a new instance of the ActivityTrackingLocation class.

Overloads

ActivityTrackingLocation()

Initializes a new instance of the ActivityTrackingLocation class.

ActivityTrackingLocation(String)

Initializes a new instance of the ActivityTrackingLocation class by using the specified activity name.

ActivityTrackingLocation(Type)

Initializes a new instance of the ActivityTrackingLocation class by using the specified reference activity type.

ActivityTrackingLocation(String, IEnumerable<ActivityExecutionStatus>)

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, IEnumerable<ActivityExecutionStatus>)

Initializes a new instance of the ActivityTrackingLocation class that has the specified reference activity type and matches the specified activity execution status events.

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

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

ActivityTrackingLocation()

Initializes a new instance of the ActivityTrackingLocation class.

public:
 ActivityTrackingLocation();
public ActivityTrackingLocation ();
Public Sub New ()

Remarks

If you use the parameterless constructor and you do not explicitly set either ActivityType or ActivityTypeName in your code, then if a TrackingProfileSerializer is later used on your tracking profile an exception will be thrown.

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

Property Value
ActivityTypeName A null reference (Nothing in Visual Basic).
ActivityType A null reference (Nothing).
Conditions An empty TrackingConditionCollection.
ExecutionStatusEvents An empty List<T>.
MatchDerivedTypes false.

Applies to

ActivityTrackingLocation(String)

Initializes a new instance of the ActivityTrackingLocation class by using the specified activity name.

public:
 ActivityTrackingLocation(System::String ^ activityTypeName);
public ActivityTrackingLocation (string activityTypeName);
new System.Workflow.Runtime.Tracking.ActivityTrackingLocation : string -> System.Workflow.Runtime.Tracking.ActivityTrackingLocation
Public Sub New (activityTypeName As String)

Parameters

activityTypeName
String

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

Exceptions

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

Remarks

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". ActivityTypeName is set to activityTypeName.

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 An empty List<T>.
MatchDerivedTypes false.

Applies to

ActivityTrackingLocation(Type)

Initializes a new instance of the ActivityTrackingLocation class by using the specified reference activity type.

public:
 ActivityTrackingLocation(Type ^ activityType);
public ActivityTrackingLocation (Type activityType);
new System.Workflow.Runtime.Tracking.ActivityTrackingLocation : Type -> System.Workflow.Runtime.Tracking.ActivityTrackingLocation
Public Sub New (activityType As Type)

Parameters

activityType
Type

The Type of an activity.

Exceptions

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

Remarks

ActivityType is set to activityType.

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

Property Value
ActivityTypeName A null reference (Nothing in Visual Basic).
ActivityType The reference activity type specified by activityType.
Conditions An empty TrackingConditionCollection.
ExecutionStatusEvents An empty List<T>.
MatchDerivedTypes false.

Applies to

ActivityTrackingLocation(String, IEnumerable<ActivityExecutionStatus>)

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.

public:
 ActivityTrackingLocation(System::String ^ activityTypeName, System::Collections::Generic::IEnumerable<System::Workflow::ComponentModel::ActivityExecutionStatus> ^ executionStatusEvents);
public ActivityTrackingLocation (string activityTypeName, System.Collections.Generic.IEnumerable<System.Workflow.ComponentModel.ActivityExecutionStatus> executionStatusEvents);
new System.Workflow.Runtime.Tracking.ActivityTrackingLocation : string * seq<System.Workflow.ComponentModel.ActivityExecutionStatus> -> System.Workflow.Runtime.Tracking.ActivityTrackingLocation
Public Sub New (activityTypeName As String, executionStatusEvents As IEnumerable(Of ActivityExecutionStatus))

Parameters

activityTypeName
String

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

executionStatusEvents
IEnumerable<ActivityExecutionStatus>

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

Exceptions

activityTypeName is a null reference (Nothing in Visual Basic)

-or-

executionStatusEvents is a null reference (Nothing).

Remarks

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

Applies to

ActivityTrackingLocation(Type, IEnumerable<ActivityExecutionStatus>)

Initializes a new instance of the ActivityTrackingLocation class that has the specified reference activity type and matches the specified activity execution status events.

public:
 ActivityTrackingLocation(Type ^ activityType, System::Collections::Generic::IEnumerable<System::Workflow::ComponentModel::ActivityExecutionStatus> ^ executionStatusEvents);
public ActivityTrackingLocation (Type activityType, System.Collections.Generic.IEnumerable<System.Workflow.ComponentModel.ActivityExecutionStatus> executionStatusEvents);
new System.Workflow.Runtime.Tracking.ActivityTrackingLocation : Type * seq<System.Workflow.ComponentModel.ActivityExecutionStatus> -> System.Workflow.Runtime.Tracking.ActivityTrackingLocation
Public Sub New (activityType As Type, executionStatusEvents As IEnumerable(Of ActivityExecutionStatus))

Parameters

activityType
Type

The Type of an activity.

executionStatusEvents
IEnumerable<ActivityExecutionStatus>

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

Exceptions

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

-or-

executionStatusEvents is a null reference (Nothing).

Remarks

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

Applies to

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

public:
 ActivityTrackingLocation(System::String ^ activityTypeName, bool matchDerivedTypes, System::Collections::Generic::IEnumerable<System::Workflow::ComponentModel::ActivityExecutionStatus> ^ executionStatusEvents);
public ActivityTrackingLocation (string activityTypeName, bool matchDerivedTypes, System.Collections.Generic.IEnumerable<System.Workflow.ComponentModel.ActivityExecutionStatus> executionStatusEvents);
new System.Workflow.Runtime.Tracking.ActivityTrackingLocation : string * bool * seq<System.Workflow.ComponentModel.ActivityExecutionStatus> -> System.Workflow.Runtime.Tracking.ActivityTrackingLocation
Public Sub New (activityTypeName As String, matchDerivedTypes As Boolean, executionStatusEvents As IEnumerable(Of ActivityExecutionStatus))

Parameters

activityTypeName
String

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

matchDerivedTypes
Boolean

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

executionStatusEvents
IEnumerable<ActivityExecutionStatus>

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

Exceptions

activityTypeName is a null reference (Nothing in Visual Basic)

-or-

executionStatusEvents is a null reference (Nothing).

Remarks

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.

Applies to

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

public:
 ActivityTrackingLocation(Type ^ activityType, bool matchDerivedTypes, System::Collections::Generic::IEnumerable<System::Workflow::ComponentModel::ActivityExecutionStatus> ^ executionStatusEvents);
public ActivityTrackingLocation (Type activityType, bool matchDerivedTypes, System.Collections.Generic.IEnumerable<System.Workflow.ComponentModel.ActivityExecutionStatus> executionStatusEvents);
new System.Workflow.Runtime.Tracking.ActivityTrackingLocation : Type * bool * seq<System.Workflow.ComponentModel.ActivityExecutionStatus> -> System.Workflow.Runtime.Tracking.ActivityTrackingLocation
Public Sub New (activityType As Type, matchDerivedTypes As Boolean, executionStatusEvents As IEnumerable(Of ActivityExecutionStatus))

Parameters

activityType
Type

The Type of an activity.

matchDerivedTypes
Boolean

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

executionStatusEvents
IEnumerable<ActivityExecutionStatus>

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

Exceptions

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

-or-

executionStatusEvents is a null reference (Nothing).

Remarks

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.

Applies to