TraceListener.Name Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets or sets a name for this TraceListener.

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

public virtual string Name { get; set; }

Property Value

Type: System.String

A name for this TraceListener. The default is an empty string ("").

The name can be used to organize and access listeners in a TraceListenerCollection collection.

.NET Framework
Available since 1.1
Return to top
Show: