Edit

Share via


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.

C#
protected void TrackData(object userData);

Parameters

userData
Object

Object that contains the tracking information.

Exceptions

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

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

TrackData(String, Object)

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

C#
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

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1