ITraceWriterExtensions::Warn Method
Assembly: System.Web.Http (in System.Web.Http.dll)
| Name | Description | |
|---|---|---|
![]() ![]() | Warn(ITraceWriter^, HttpRequestMessage^, String^, Exception^) | Indicates the warning level of execution. |
![]() ![]() | Warn(ITraceWriter^, HttpRequestMessage^, String^, Exception^, String^, array<Object^>^) | Indicates the warning level of execution. |
![]() ![]() | Warn(ITraceWriter^, HttpRequestMessage^, String^, String^, array<Object^>^) | Indicates the warning level of execution. |
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.
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.
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.

