Partilhar via


ITelemetryClient.TrackEvent Method

Definition

Overloads

TrackEvent(TelemetryEventDetails)

Tracks an instance of a named event.

TrackEvent(String, IDictionary<String,String>, IDictionary<String, Int64>, IDictionary<String,Boolean>, IDictionary<String,DateTime>, IDictionary<String,Double>, IDictionary<String,Guid>)

Tracks an instance of a named event.

TrackEvent(TelemetryEventDetails)

Tracks an instance of a named event.

public void TrackEvent (Microsoft.IdentityModel.Abstractions.TelemetryEventDetails eventDetails);
abstract member TrackEvent : Microsoft.IdentityModel.Abstractions.TelemetryEventDetails -> unit
Public Sub TrackEvent (eventDetails As TelemetryEventDetails)

Parameters

eventDetails
TelemetryEventDetails

Details of the event to track.

Applies to

TrackEvent(String, IDictionary<String,String>, IDictionary<String, Int64>, IDictionary<String,Boolean>, IDictionary<String,DateTime>, IDictionary<String,Double>, IDictionary<String,Guid>)

Tracks an instance of a named event.

public void TrackEvent (string eventName, System.Collections.Generic.IDictionary<string,string>? stringProperties = default, System.Collections.Generic.IDictionary<string,long>? longProperties = default, System.Collections.Generic.IDictionary<string,bool>? boolProperties = default, System.Collections.Generic.IDictionary<string,DateTime>? dateTimeProperties = default, System.Collections.Generic.IDictionary<string,double>? doubleProperties = default, System.Collections.Generic.IDictionary<string,Guid>? guidProperties = default);
abstract member TrackEvent : string * System.Collections.Generic.IDictionary<string, string> * System.Collections.Generic.IDictionary<string, int64> * System.Collections.Generic.IDictionary<string, bool> * System.Collections.Generic.IDictionary<string, DateTime> * System.Collections.Generic.IDictionary<string, double> * System.Collections.Generic.IDictionary<string, Guid> -> unit
Public Sub TrackEvent (eventName As String, Optional stringProperties As IDictionary(Of String, String) = Nothing, Optional longProperties As IDictionary(Of String, Long) = Nothing, Optional boolProperties As IDictionary(Of String, Boolean) = Nothing, Optional dateTimeProperties As IDictionary(Of String, DateTime) = Nothing, Optional doubleProperties As IDictionary(Of String, Double) = Nothing, Optional guidProperties As IDictionary(Of String, Guid) = Nothing)

Parameters

eventName
String

Name of the event to track. Should be unique per scenario.

stringProperties
IDictionary<String,String>

Key value pair of strings to long with the event.

longProperties
IDictionary<String,Int64>

Key value pair of longs to long with the event.

boolProperties
IDictionary<String,Boolean>

Key value pair of bools to long with the event.

dateTimeProperties
IDictionary<String,DateTime>

Key value pair of DateTimes to long with the event.

doubleProperties
IDictionary<String,Double>

Key value pair of doubles to long with the event.

guidProperties
IDictionary<String,Guid>

Key value pair of Guids to long with the event.

Applies to