Share via


SystemDiagnosticsTraceWriter.Format Method

Formats the contents of the given TraceRecord into a single string containing comma-separated name-value pairs for each TraceRecord property.

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

Syntax

'Declaration
Public Overridable Function Format ( _
    traceRecord As TraceRecord _
) As String
'Usage
Dim instance As SystemDiagnosticsTraceWriter 
Dim traceRecord As TraceRecord 
Dim returnValue As String 

returnValue = instance.Format(traceRecord)
public virtual string Format(
    TraceRecord traceRecord
)
public:
virtual String^ Format(
    TraceRecord^ traceRecord
)
abstract Format : 
        traceRecord:TraceRecord -> string  
override Format : 
        traceRecord:TraceRecord -> string
public function Format(
    traceRecord : TraceRecord
) : String

Parameters

Return Value

Type: System.String
A string containing comma-separated name-value pairs.

See Also

Reference

SystemDiagnosticsTraceWriter Class

System.Web.Http.Tracing Namespace