NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

BooleanSwitch Constructor

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
);

Parameters

displayName
A name to display on a user interface.
description
A description of the switch.

Remarks

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").

See Also

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