Activity.TrackData Method (Object)


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

Namespace:   System.Workflow.ComponentModel
Assembly:  System.Workflow.ComponentModel (in System.Workflow.ComponentModel.dll)

protected void TrackData(
	object userData


Type: System.Object

Object that contains the tracking information.

Exception Condition

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

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

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

.NET Framework
Available since 3.0
Return to top