Activity.TrackData Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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(System::Object ^ userData);
protected void TrackData (object userData);
member this.TrackData : obj -> unit
Protected Sub TrackData (userData As Object)
Parameters
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");
}
Private Sub Track_ExecuteCode(ByVal sender As Object, ByVal e As EventArgs)
Console.WriteLine("Calling TrackData from workflow")
Me.TrackData("Hello - me is a UserTrackPoint")
End Sub
Applies to
TrackData(String, Object)
Informs the run-time tracking infrastructure of pending tracking information.
protected:
void TrackData(System::String ^ userDataKey, System::Object ^ userData);
protected void TrackData (string userDataKey, object userData);
member this.TrackData : string * obj -> unit
Protected Sub TrackData (userDataKey As String, userData As Object)
Parameters
- userDataKey
- String
The key to the user data that has changed.
Exceptions
userData
is a null reference (Nothing
in Visual Basic).
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기