ITraceWriterExtensions::Trace Method

 

ITraceWriterExtensions::Trace Method (ITraceWriter^, HttpRequestMessage^, String^, TraceLevel, Exception^)

Indicates the trace listeners in the Listeners collection.

public:
[ExtensionAttribute]
static void Trace(
	ITraceWriter^ traceWriter,
	HttpRequestMessage^ request,
	String^ category,
	TraceLevel level,
	Exception^ exception
)

Parameters

traceWriter
Type: System.Web.Http.Tracing::ITraceWriter^

The ITraceWriter.

request
Type: System.Net.Http::HttpRequestMessage^

The HttpRequestMessage with which to associate the trace. It may be null.

category
Type: System::String^

The logical category of the trace.

level
Type: System.Web.Http.Tracing::TraceLevel

The trace level.

exception
Type: System::Exception^

The error occurred during execution.

Return to top

ITraceWriterExtensions::Trace Method (ITraceWriter^, HttpRequestMessage^, String^, TraceLevel, Exception^, String^, array<Object^>^)

Indicates the trace listeners in the Listeners collection.

public:
[ExtensionAttribute]
static void Trace(
	ITraceWriter^ traceWriter,
	HttpRequestMessage^ request,
	String^ category,
	TraceLevel level,
	Exception^ exception,
	String^ messageFormat,
	... array<Object^>^ messageArguments
)

Parameters

traceWriter
Type: System.Web.Http.Tracing::ITraceWriter^

The ITraceWriter.

request
Type: System.Net.Http::HttpRequestMessage^

The HttpRequestMessage with which to associate the trace. It may be null.

category
Type: System::String^

The logical category of the trace.

level
Type: System.Web.Http.Tracing::TraceLevel

The trace level.

exception
Type: System::Exception^

The error occurred during execution.

messageFormat
Type: System::String^

The format of the message.

messageArguments
Type: array<System::Object^>^

The message argument.

Return to top

ITraceWriterExtensions::Trace Method (ITraceWriter^, HttpRequestMessage^, String^, TraceLevel, String^, array<Object^>^)

Indicates the trace listeners in the Listeners collection.

public:
[ExtensionAttribute]
static void Trace(
	ITraceWriter^ traceWriter,
	HttpRequestMessage^ request,
	String^ category,
	TraceLevel level,
	String^ messageFormat,
	... array<Object^>^ messageArguments
)

Parameters

traceWriter
Type: System.Web.Http.Tracing::ITraceWriter^

The ITraceWriter.

request
Type: System.Net.Http::HttpRequestMessage^

The HttpRequestMessage with which to associate the trace. It may be null.

category
Type: System::String^

The logical category of the trace.

level
Type: System.Web.Http.Tracing::TraceLevel

The TraceLevel of the trace.

messageFormat
Type: System::String^

The format of the message.

messageArguments
Type: array<System::Object^>^

The message argument.

Return to top
Show: