Share via


TraceRecord Class

 

Represents a trace record.

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

Inheritance Hierarchy

System.Object
  System.Web.Http.Tracing.TraceRecord

Syntax

[DebuggerDisplayAttribute("Category: {Category}, Operation: {Operation}, Level: {Level}, Kind: {Kind}")]
public class TraceRecord
[DebuggerDisplayAttribute("Category: {Category}, Operation: {Operation}, Level: {Level}, Kind: {Kind}")]
public ref class TraceRecord 
[<DebuggerDisplayAttribute("Category: {Category}, Operation: {Operation}, Level: {Level}, Kind: {Kind}")>]
type TraceRecord = class end
<DebuggerDisplayAttribute("Category: {Category}, Operation: {Operation}, Level: {Level}, Kind: {Kind}")>
Public Class TraceRecord

Constructors

Name Description
System_CAPS_pubmethod TraceRecord(HttpRequestMessage, String, TraceLevel)

Initializes a new instance of the TraceRecord class.

Properties

Name Description
System_CAPS_pubproperty Category

Gets or sets the tracing category.

System_CAPS_pubproperty Exception

Gets or sets the exception.

System_CAPS_pubproperty Kind

Gets or sets the kind of trace.

System_CAPS_pubproperty Level

Gets or sets the tracing level.

System_CAPS_pubproperty Message

Gets or sets the message.

System_CAPS_pubproperty Operation

Gets or sets the logical operation name being performed.

System_CAPS_pubproperty Operator

Gets or sets the logical name of the object performing the operation.

System_CAPS_pubproperty Properties

Gets the optional user-defined properties.

System_CAPS_pubproperty Request

Gets the HttpRequestMessage from the record.

System_CAPS_pubproperty RequestId

Gets the correlation ID from the Request.

System_CAPS_pubproperty Status

Gets or sets the HttpStatusCode associated with the HttpResponseMessage.

System_CAPS_pubproperty Timestamp

Gets the DateTime of this trace (via UtcNow).

Methods

Name Description
System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

System.Web.Http.Tracing Namespace

Return to top