Compartilhar via


TraceRecord Class

Represents a trace record.

Inheritance Hierarchy

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

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

Syntax

'Declaration
Public Class TraceRecord
'Usage
Dim instance As TraceRecord
public class TraceRecord
public ref class TraceRecord
type TraceRecord =  class end
public class TraceRecord

The TraceRecord type exposes the following members.

Constructors

  Name Description
Public method TraceRecord Initializes a new instance of the TraceRecord class.

Top

Properties

  Name Description
Public property Category Gets or sets the tracing category.
Public property Exception Gets or sets the exception.
Public property Kind Gets or sets the kind of trace.
Public property Level Gets or sets the tracing level.
Public property Message Gets or sets the message.
Public property Operation Gets or sets the logical operation name being performed.
Public property Operator Gets or sets the logical name of the object performing the operation.
Public property Properties Gets the optional user-defined properties.
Public property Request Gets the HttpRequestMessage from the record.
Public property RequestId Gets the correlation ID from the Request.
Public property Status Gets or sets the HttpStatusCode associated with the HttpResponseMessage.
Public property Timestamp Gets the DateTime of this trace (via UtcNow).

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Object.)

Top

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

Reference

System.Web.Http.Tracing Namespace