Activity.TrackData Method

Definition

Informs the run-time tracking infrastructure of pending tracking information.

Overloads

TrackData(Object)

Informs the run-time tracking infrastructure of pending tracking information.

TrackData(String, Object)

Informs the run-time tracking infrastructure of pending tracking information.

TrackData(Object)

Informs the run-time tracking infrastructure of pending tracking information.

protected void TrackData(object userData);

Parameters

userData
Object

Object that contains the tracking information.

Exceptions

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

Examples

The following example shows a call to the TrackData method. This example is from the Termination Tracking Service SDK sample. For more information, see Termination Tracking Service Sample.

private void Track_ExecuteCode(object sender, EventArgs e)
{
    Console.WriteLine("Calling TrackData from workflow");
    this.TrackData("Hello - this is a UserTrackPoint");
}

Applies to

TrackData(String, Object)

Informs the run-time tracking infrastructure of pending tracking information.

protected void TrackData(string userDataKey, object userData);

Parameters

userDataKey
String

The key to the user data that has changed.

userData
Object

Object that contains the tracking information.

Exceptions

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

Applies to