This documentation is archived and is not being maintained.

Switch.DisplayName Property

Gets a name used to identify the switch.

[Visual Basic]
Public ReadOnly Property DisplayName As String
[C#]
public string DisplayName {get;}
[C++]
public: __property String* get_DisplayName();
[JScript]
public function get DisplayName() : String;

Property Value

The name used to identify the switch. The default value is an empty string ("").

Remarks

When you create a new Switch object, the DisplayName finds initial switch settings. For more information, see the Switch constructor and the TraceSwitch Configuration topic in the Visual Studio documentation.

Requirements

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

See Also

Switch Class | Switch Members | System.Diagnostics Namespace | Switch | BooleanSwitch | TraceSwitch | Debug | Trace

Show: