This documentation is archived and is not being maintained.

TraceListener.Name Property

Gets or sets a name for this TraceListener.

[Visual Basic]
Public Overridable Property Name As String
[C#]
public virtual string Name {get; set;}
[C++]
public: __property virtual String* get_Name();
public: __property virtual void set_Name(String*);
[JScript]
public function get Name() : String;
public function set Name(String);

Property Value

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

Remarks

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

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

See Also

TraceListener Class | TraceListener Members | System.Diagnostics Namespace | TraceListener | DefaultTraceListener | EventLogTraceListener | TextWriterTraceListener | Debug | Trace

Show: