語言

NullBotTelemetryClient.TrackEvent 方法

定義

使用可延伸的具名字段記錄自定義事件。

public 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 Sub TrackEvent (eventName As String, Optional properties As IDictionary(Of String, String) = Nothing, Optional metrics As IDictionary(Of String, Double) = Nothing)

參數

eventName
String

事件的名稱。

properties
IDictionary<String,String>

您可以使用具名字串值來搜尋和分類事件。

metrics
IDictionary<String,Double>

與此事件相關聯的度量。

實作

適用於