Error Method (ITraceWriter, , String, Exception)
Collapse the table of content
Expand the table of content

ITraceWriterExtensions.Error Method (ITraceWriter, , String, Exception)

Displays an error message in the list with the specified writer, request, category and exception.

Namespace:  System.Web.Http.Tracing
Assembly:  System.Web.Http (in System.Web.Http.dll)

public static function Error(
	traceWriter : ITraceWriter, 
	request : HttpRequestMessage, 
	category : String, 
	exception : Exception


Type: System.Web.Http.Tracing.ITraceWriter

The ITraceWriter.

Type: HttpRequestMessage

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

Type: System.String

The logical category of the trace.

Type: System.Exception

The error occurred during execution.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ITraceWriter. When you use instance method syntax to call this method, omit the first parameter. For more information, see or
© 2016 Microsoft