Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Source Property
Collapse the table of content
Expand the table of content

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.

ExceptionCondition
ArgumentNullException

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

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft