Initializes a new instance of the BooleanSwitch class.
[Visual Basic] Public Sub New( _ ByVal displayName As String, _ ByVal description As String _ ) [C#] public BooleanSwitch( string displayName, string description ); [C++] public: BooleanSwitch( String* displayName, String* description ); [JScript] public function BooleanSwitch( displayName : String, description : String );
When a BooleanSwitch is instantiated, the displayName is used to find initial switch settings in the registry or in environmental variables. If the constructor cannot find initial settings, the Enabled field is set to disabled (false). To enable a diabled switch, call the SetSwitchSetting method with a value other than zero ("0").
BooleanSwitch Class | BooleanSwitch Members | System.Diagnostics Namespace | BooleanSwitch | Switch | Debug | Trace