你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

TelemetryClient.TrackEvent 方法

定义

重载

TrackEvent(EventTelemetry)

发送 , EventTelemetry 以便在诊断搜索和分析门户中显示。 为每个对 的TrackEvent(EventTelemetry)调用创建单独的 EventTelemetry 实例。

TrackEvent(String, IDictionary<String,String>, IDictionary<String,Double>)

发送 , EventTelemetry 以便在诊断搜索和分析门户中显示。

TrackEvent(EventTelemetry)

发送 , EventTelemetry 以便在诊断搜索和分析门户中显示。 为每个对 的TrackEvent(EventTelemetry)调用创建单独的 EventTelemetry 实例。

public void TrackEvent (Microsoft.ApplicationInsights.DataContracts.EventTelemetry telemetry);
member this.TrackEvent : Microsoft.ApplicationInsights.DataContracts.EventTelemetry -> unit
Public Sub TrackEvent (telemetry As EventTelemetry)

参数

telemetry
EventTelemetry

事件日志项。

注解

了解详细信息

适用于

TrackEvent(String, IDictionary<String,String>, IDictionary<String,Double>)

发送 , EventTelemetry 以便在诊断搜索和分析门户中显示。

public void TrackEvent (string eventName, System.Collections.Generic.IDictionary<string,string> properties = default, System.Collections.Generic.IDictionary<string,double> metrics = default);
member 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>

与此事件关联的度量值。

注解

了解详细信息

适用于