ITraceWriterExtensions.Error Method
Namespace: System.Web.Http.Tracing
Assembly: System.Web.Http (in System.Web.Http.dll)
Overload List
Name | Description | |
---|---|---|
Error(ITraceWriter, HttpRequestMessage, String, Exception) | Displays an error message in the list with the specified writer, request, category and exception. |
|
Error(ITraceWriter, HttpRequestMessage, String, Exception, String, Object[]) | Displays an error message in the list with the specified writer, request, category, exception, message format and argument. |
|
Error(ITraceWriter, HttpRequestMessage, String, String, Object[]) | Displays an error message in the list with the specified writer, request, category, message format and argument. |
See Also
ITraceWriterExtensions Class
System.Web.Http.Tracing Namespace
Return to top
ITraceWriterExtensions.Error Method (ITraceWriter, HttpRequestMessage, String, Exception)
Displays an error message in the list with the specified writer, request, category and exception.
Syntax
public static void Error(
this ITraceWriter traceWriter,
HttpRequestMessage request,
string category,
Exception exception
)
public:
[ExtensionAttribute]
static void Error(
ITraceWriter^ traceWriter,
HttpRequestMessage^ request,
String^ category,
Exception^ exception
)
static member Error :
traceWriter:ITraceWriter *
request:HttpRequestMessage *
category:string *
exception:Exception -> unit
<ExtensionAttribute>
Public Shared Sub Error (
traceWriter As ITraceWriter,
request As HttpRequestMessage,
category As String,
exception As Exception
)
Parameters
traceWriter
Type: System.Web.Http.Tracing.ITraceWriterThe ITraceWriter.
request
Type: System.Net.Http.HttpRequestMessageThe HttpRequestMessage with which to associate the trace. It may be null.
category
Type: System.StringThe logical category of the trace.
exception
Type: System.ExceptionThe error occurred during execution.
Return to top
ITraceWriterExtensions.Error Method (ITraceWriter, HttpRequestMessage, String, Exception, String, Object[])
Displays an error message in the list with the specified writer, request, category, exception, message format and argument.
Syntax
public static void Error(
this ITraceWriter traceWriter,
HttpRequestMessage request,
string category,
Exception exception,
string messageFormat,
params object[] messageArguments
)
public:
[ExtensionAttribute]
static void Error(
ITraceWriter^ traceWriter,
HttpRequestMessage^ request,
String^ category,
Exception^ exception,
String^ messageFormat,
... array<Object^>^ messageArguments
)
static member Error :
traceWriter:ITraceWriter *
request:HttpRequestMessage *
category:string *
exception:Exception *
messageFormat:string *
[<ParamArrayAttribute>] messageArguments:Object[] -> unit
<ExtensionAttribute>
Public Shared Sub Error (
traceWriter As ITraceWriter,
request As HttpRequestMessage,
category As String,
exception As Exception,
messageFormat As String,
ParamArray messageArguments As Object()
)
Parameters
traceWriter
Type: System.Web.Http.Tracing.ITraceWriterThe ITraceWriter.
request
Type: System.Net.Http.HttpRequestMessageThe HttpRequestMessage with which to associate the trace. It may be null.
category
Type: System.StringThe logical category of the trace.
exception
Type: System.ExceptionThe exception.
messageFormat
Type: System.StringThe format of the message.
messageArguments
Type: System.Object[]The argument in the message.
Return to top
ITraceWriterExtensions.Error Method (ITraceWriter, HttpRequestMessage, String, String, Object[])
Displays an error message in the list with the specified writer, request, category, message format and argument.
Syntax
public static void Error(
this ITraceWriter traceWriter,
HttpRequestMessage request,
string category,
string messageFormat,
params object[] messageArguments
)
public:
[ExtensionAttribute]
static void Error(
ITraceWriter^ traceWriter,
HttpRequestMessage^ request,
String^ category,
String^ messageFormat,
... array<Object^>^ messageArguments
)
static member Error :
traceWriter:ITraceWriter *
request:HttpRequestMessage *
category:string *
messageFormat:string *
[<ParamArrayAttribute>] messageArguments:Object[] -> unit
<ExtensionAttribute>
Public Shared Sub Error (
traceWriter As ITraceWriter,
request As HttpRequestMessage,
category As String,
messageFormat As String,
ParamArray messageArguments As Object()
)
Parameters
traceWriter
Type: System.Web.Http.Tracing.ITraceWriterThe ITraceWriter.
request
Type: System.Net.Http.HttpRequestMessageThe HttpRequestMessage with which to associate the trace. It may be null.
category
Type: System.StringThe logical category of the trace.
messageFormat
Type: System.StringThe format of the message.
messageArguments
Type: System.Object[]The argument in the message.
Return to top