BotTelemetryClient.TrackException 方法

定义

记录系统异常。

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

参数

exception
Exception

要记录的异常。

properties
IDictionary<String,String>

可用于分类和搜索此异常的命名字符串值。

metrics
IDictionary<String,Double>

与此异常关联的其他值。

实现

适用于