Szerkesztés

Megosztás a következőn keresztül:


TrackingDataItemValue Constructors

Definition

Initializes a new instance of the TrackingDataItemValue class.

Overloads

TrackingDataItemValue()

Initializes a new instance of the TrackingDataItemValue class.

TrackingDataItemValue(String, String, String)

Initializes a new instance of the TrackingDataItemValue class by using the specified qualified name of an activity, data field name, and string representation of a data value.

TrackingDataItemValue()

Initializes a new instance of the TrackingDataItemValue class.

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

Remarks

The parameterless constructor initializes DataValue, FieldName, and QualifiedName to a null reference (Nothing in Visual Basic). You must set all of these properties in order to configure the TrackingDataItemValue.

Applies to

TrackingDataItemValue(String, String, String)

Initializes a new instance of the TrackingDataItemValue class by using the specified qualified name of an activity, data field name, and string representation of a data value.

public:
 TrackingDataItemValue(System::String ^ qualifiedName, System::String ^ fieldName, System::String ^ dataValue);
public TrackingDataItemValue (string qualifiedName, string fieldName, string dataValue);
new System.Workflow.Runtime.Tracking.TrackingDataItemValue : string * string * string -> System.Workflow.Runtime.Tracking.TrackingDataItemValue
Public Sub New (qualifiedName As String, fieldName As String, dataValue As String)

Parameters

qualifiedName
String

The qualified name of the activity from which the data was extracted.

fieldName
String

The name of the member from which the data was extracted.

dataValue
String

A string representation of the value of the data.

Examples

The following example demonstrates creating a new instance of a TrackingDataItemValue object. This example is from the Workflow Monitor SDK sample. For more information, see Workflow Monitor Sample.

trackingDataItemValue = new TrackingDataItemValue(string.Empty, string.Empty, string.Empty);
trackingDataItemValue.QualifiedName = this.toolStripTextBoxArtifactQualifiedId.Text.ToString();
trackingDataItemValue.FieldName = this.toolStripTextBoxArtifactKeyName.Text.ToString();
trackingDataItemValue.DataValue = this.toolStripTextBoxArtifactKeyValue.Text.ToString();
TrackingDataItemValue = New TrackingDataItemValue(String.Empty, String.Empty, String.Empty)
TrackingDataItemValue.QualifiedName = Me.toolStripTextBoxArtifactQualifiedId.Text.ToString()
TrackingDataItemValue.FieldName = Me.toolStripTextBoxArtifactKeyName.Text.ToString()
TrackingDataItemValue.DataValue = Me.toolStripTextBoxArtifactKeyValue.Text.ToString()

Remarks

The QualifiedName, FieldName, and DataValue properties are set according to the values specified by the equivalent parameters to the constructor.

Applies to