Activity.TrackData Método
Definición
Informa a la infraestructura del seguimiento en tiempo de ejecución de la información de seguimiento pendiente.Informs the run-time tracking infrastructure of pending tracking information.
Sobrecargas
TrackData(Object) |
Informa a la infraestructura del seguimiento en tiempo de ejecución de la información de seguimiento pendiente.Informs the run-time tracking infrastructure of pending tracking information. |
TrackData(String, Object) |
Informa a la infraestructura del seguimiento en tiempo de ejecución de la información de seguimiento pendiente.Informs the run-time tracking infrastructure of pending tracking information. |
TrackData(Object)
Informa a la infraestructura del seguimiento en tiempo de ejecución de la información de seguimiento pendiente.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)
Parámetros
- userData
- Object
Objeto Object que contiene información de seguimiento.Object that contains the tracking information.
Excepciones
userData
es una referencia nula (Nothing
en Visual Basic).userData
is a null reference (Nothing
in Visual Basic).
Ejemplos
En el ejemplo siguiente se muestra una llamada al método TrackData
.The following example shows a call to the TrackData
method. Este ejemplo pertenece al ejemplo SDK del servicio de seguimiento de finalización.This example is from the Termination Tracking Service SDK sample. Para obtener más información, vea ejemplo de servicio de seguimiento de finalización.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
Se aplica a
TrackData(String, Object)
Informa a la infraestructura del seguimiento en tiempo de ejecución de la información de seguimiento pendiente.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)
Parámetros
- userDataKey
- String
La clave en los datos del usuario que ha cambiado.The key to the user data that has changed.
- userData
- Object
Objeto Object que contiene información de seguimiento.Object that contains the tracking information.
Excepciones
userData
es una referencia nula (Nothing
en Visual Basic).userData
is a null reference (Nothing
in Visual Basic).