Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ITraceWriterExtensions::Warn Method

 

ITraceWriterExtensions::Warn Method (ITraceWriter^, HttpRequestMessage^, String^, Exception^)

Indicates the warning level of execution.

public:
[ExtensionAttribute]
static void Warn(
	ITraceWriter^ traceWriter,
	HttpRequestMessage^ request,
	String^ category,
	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.

exception
Type: System::Exception^

The error occurred during execution.

Return to top

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

Indicates the warning level of execution.

public:
[ExtensionAttribute]
static void Warn(
	ITraceWriter^ traceWriter,
	HttpRequestMessage^ request,
	String^ category,
	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.

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::Warn Method (ITraceWriter^, HttpRequestMessage^, String^, String^, array<Object^>^)

Indicates the warning level of execution.

public:
[ExtensionAttribute]
static void Warn(
	ITraceWriter^ traceWriter,
	HttpRequestMessage^ request,
	String^ category,
	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.

messageFormat
Type: System::String^

The format of the message.

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

The message argument.

Return to top
Show: