ITraceWriterExtensions::Trace Method
Assembly: System.Web.Http (in System.Web.Http.dll)
| Name | Description | |
|---|---|---|
![]() ![]() | Trace(ITraceWriter^, HttpRequestMessage^, String^, TraceLevel, Exception^) | Indicates the trace listeners in the Listeners collection. |
![]() ![]() | Trace(ITraceWriter^, HttpRequestMessage^, String^, TraceLevel, Exception^, String^, array<Object^>^) | Indicates the trace listeners in the Listeners collection. |
![]() ![]() | Trace(ITraceWriter^, HttpRequestMessage^, String^, TraceLevel, String^, array<Object^>^) | Indicates the trace listeners in the Listeners collection. |
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.
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.
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.

