Share via


BotTelemetryClient.TrackEvent Method

Definition

Logs custom events with extensible named fields.

public virtual void TrackEvent (string eventName, System.Collections.Generic.IDictionary<string,string> properties = default, System.Collections.Generic.IDictionary<string,double> metrics = default);
abstract member TrackEvent : string * System.Collections.Generic.IDictionary<string, string> * System.Collections.Generic.IDictionary<string, double> -> unit
override this.TrackEvent : string * System.Collections.Generic.IDictionary<string, string> * System.Collections.Generic.IDictionary<string, double> -> unit
Public Overridable Sub TrackEvent (eventName As String, Optional properties As IDictionary(Of String, String) = Nothing, Optional metrics As IDictionary(Of String, Double) = Nothing)

Parameters

eventName
String

A name for the event.

properties
IDictionary<String,String>

Named string values you can use to search and classify events.

metrics
IDictionary<String,Double>

Measurements associated with this event.

Implements

Applies to