Edit

Share via


TrackingDataItemValue.FieldName Property

Definition

Gets or sets the name of the activity member from which the data was extracted.

public:
 property System::String ^ FieldName { System::String ^ get(); void set(System::String ^ value); };
public string FieldName { get; set; }
member this.FieldName : string with get, set
Public Property FieldName As String

Property Value

The name of the activity member from which the data was extracted. The default is a null reference (Nothing in Visual Basic).

Examples

The following example demonstrates setting the FieldName property. 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

FieldName corresponds to the name specified in a TrackingDataItem.FieldName. FieldName can, therefore, be set to specify an activity field or property; a member of an activity field or property; or a single element of an activity field or property (or a member of either) that implements the IEnumerable interface. For more information see TrackingDataItem.FieldName, TrackingExtract.Member, ActivityDataTrackingExtract.Member or WorkflowDataTrackingExtract.Member.

Applies to