SystemDiagnosticsTraceWriter.TraceSource Property

Gets or sets the TraceSource to which the traces will be sent.

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

Syntax

'Declaration
Public Property TraceSource As TraceSource 
    Get 
    Set
'Usage
Dim instance As SystemDiagnosticsTraceWriter 
Dim value As TraceSource 

value = instance.TraceSource

instance.TraceSource = value
public TraceSource TraceSource { get; set; }
public:
property TraceSource^ TraceSource {
    TraceSource^ get ();
    void set (TraceSource^ value);
}
member TraceSource : TraceSource with get, set
function get TraceSource () : TraceSource 
function set TraceSource (value : TraceSource)

Property Value

Type: System.Diagnostics.TraceSource
This property allows a custom TraceSource to be used when writing the traces. This allows an application to configure and use its own TraceSource other than the default Trace. If the value is null, this trace writer will send traces to Trace.

See Also

Reference

SystemDiagnosticsTraceWriter Class

System.Web.Http.Tracing Namespace