Name Property
Collapse the table of content
Expand the table of content

TraceListener.Name Property

Gets or sets a name for this TraceListener.

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

Property Value

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.


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

© 2015 Microsoft