Share via


ITracer.Trace Method

Definition

Overloads

Trace(TraceEventType, String)

Traces an event of the specified type with the specified message.

Trace(TraceEventType, String, Object)

Traces an event of the specified type with the specified message and arguments.

Trace(TraceEventType, String, Object[])

Traces an event.

Trace(TraceEventType, String, Object, Object)

Traces an event of the specified type with the specified message and arguments.

Trace(TraceEventType, String)

Traces an event of the specified type with the specified message.

public:
 void Trace(System::Diagnostics::TraceEventType eventType, System::String ^ message);
public void Trace (System.Diagnostics.TraceEventType eventType, string message);
abstract member Trace : System.Diagnostics.TraceEventType * string -> unit
Public Sub Trace (eventType As TraceEventType, message As String)

Parameters

eventType
TraceEventType

Type type of the event being traced

message
String

The message to display

Applies to

Trace(TraceEventType, String, Object)

Traces an event of the specified type with the specified message and arguments.

public:
 void Trace(System::Diagnostics::TraceEventType eventType, System::String ^ message, System::Object ^ arg0);
public void Trace (System.Diagnostics.TraceEventType eventType, string message, object arg0);
abstract member Trace : System.Diagnostics.TraceEventType * string * obj -> unit
Public Sub Trace (eventType As TraceEventType, message As String, arg0 As Object)

Parameters

eventType
TraceEventType

The event type.

message
String

The message.

arg0
Object

The argument.

Applies to

Trace(TraceEventType, String, Object[])

Traces an event.

public:
 void Trace(System::Diagnostics::TraceEventType eventType, System::String ^ message, ... cli::array <System::Object ^> ^ args);
public void Trace (System.Diagnostics.TraceEventType eventType, string message, params object[] args);
abstract member Trace : System.Diagnostics.TraceEventType * string * obj[] -> unit
Public Sub Trace (eventType As TraceEventType, message As String, ParamArray args As Object())

Parameters

eventType
TraceEventType

Type type of the event being traced

message
String

The message to display

args
Object[]

The arguments to format into the message

Applies to

Trace(TraceEventType, String, Object, Object)

Traces an event of the specified type with the specified message and arguments.

public:
 void Trace(System::Diagnostics::TraceEventType eventType, System::String ^ message, System::Object ^ arg0, System::Object ^ arg1);
public void Trace (System.Diagnostics.TraceEventType eventType, string message, object arg0, object arg1);
abstract member Trace : System.Diagnostics.TraceEventType * string * obj * obj -> unit
Public Sub Trace (eventType As TraceEventType, message As String, arg0 As Object, arg1 As Object)

Parameters

eventType
TraceEventType

The event type.

message
String

The message.

arg0
Object

The first argument.

arg1
Object

The second argument.

Applies to