共用方式為


Tracer.TraceException(Exception, TraceEventType) Method

Definition

Traces an exception.

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

Parameters

ex
Exception

The exception to trace

eventType
TraceEventType

The type of event to trace

Implements

Applies to