共用方式為


BotTelemetryClient.TrackEvent 方法

定義

記錄具有可延伸具名欄位的自訂事件。

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)

參數

eventName
String

事件的名稱。

properties
IDictionary<String,String>

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

metrics
IDictionary<String,Double>

與此事件相關聯的度量。

實作

適用於