ITracer.TraceException(Exception, TraceEventType) 方法

定义

跟踪异常。

public void TraceException (Exception ex, System.Diagnostics.TraceEventType eventType = System.Diagnostics.TraceEventType.Error);
abstract member TraceException : Exception * System.Diagnostics.TraceEventType -> unit
Public Sub TraceException (ex As Exception, Optional eventType As TraceEventType = System.Diagnostics.TraceEventType.Error)

参数

ex
Exception

要跟踪的异常

eventType
TraceEventType

要跟踪的事件的类型

适用于