SourceFilter.Source Property


Gets or sets the name of the trace source.

Namespace:   System.Diagnostics
Assembly:  System (in System.dll)

public string Source { get; set; }

Property Value

Type: System.String

The name of the trace source.

Exception Condition

The value is null.

Source identifies the trace source for which to write trace information. Trace information will not be written for other trace sources. The name of the trace source is the name parameter from the constructor for the TraceSource.

.NET Framework
Available since 2.0
Return to top