共用方式為


IBotTelemetryClient.TrackException 方法

定義

記錄系統例外狀況。

public 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
Public 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>

與此例外狀況相關聯的其他值。

適用於