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 | |
---|---|---|
TraceRecord(HttpRequestMessage, String, TraceLevel) | Initializes a new instance of the TraceRecord class. |
Properties
Name | Description | |
---|---|---|
Category | Gets or sets the tracing category. |
|
Exception | Gets or sets the exception. |
|
Kind | Gets or sets the kind of trace. |
|
Level | Gets or sets the tracing level. |
|
Message | Gets or sets the message. |
|
Operation | Gets or sets the logical operation name being performed. |
|
Operator | Gets or sets the logical name of the object performing the operation. |
|
Properties | Gets the optional user-defined properties. |
|
Request | Gets the HttpRequestMessage from the record. |
|
RequestId | Gets the correlation ID from the Request. |
|
Status | Gets or sets the HttpStatusCode associated with the HttpResponseMessage. |
|
Timestamp |
Methods
Name | Description | |
---|---|---|
Equals(Object) | (Inherited from Object.) |
|
Finalize() | (Inherited from Object.) |
|
GetHashCode() | (Inherited from Object.) |
|
GetType() | (Inherited from Object.) |
|
MemberwiseClone() | (Inherited from Object.) |
|
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