Tracer.Trace Method

Definition

Overloads

Trace(TraceEventType, String)

Traces an event.

Trace(TraceEventType, String, Object)

Traces an event.

Trace(TraceEventType, String, Object[])

Traces an event.

Trace(TraceEventType, String, Object, Object)

Traces an event.

Trace(TraceEventType, String)

Traces an event.

public:
 virtual 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
override this.Trace : System.Diagnostics.TraceEventType * string -> unit
Public Sub Trace (eventType As TraceEventType, message As String)

Parameters

eventType
TraceEventType

The type of event.

message
String

The message.

Implements

Applies to

Trace(TraceEventType, String, Object)

Traces an event.

public:
 virtual 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
override this.Trace : System.Diagnostics.TraceEventType * string * obj -> unit
Public Sub Trace (eventType As TraceEventType, message As String, arg0 As Object)

Parameters

eventType
TraceEventType

The type of event.

message
String

The message.

arg0
Object

Implements

Applies to

Trace(TraceEventType, String, Object[])

Traces an event.

public:
 virtual 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
override this.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

Implements

Applies to

Trace(TraceEventType, String, Object, Object)

Traces an event.

public:
 virtual 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
override this.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 type of event.

message
String

The message.

arg0
Object

The first argument.

arg1
Object

The second argument.

Implements

Applies to