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!

Switch Constructor

Initializes a new instance of the Switch class.

[Visual Basic]
Protected Sub New( _
   ByVal displayName As String, _
   ByVal description As String _
)
[C#]
protected Switch(
   string displayName,
   string description
);
[C++]
protected: Switch(
   String* displayName,
   String* description
);
[JScript]
protected function Switch(
   displayName : String,
   description : String
);

Parameters

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

Remarks

When a Switch object is instantiated, the displayName is used to find initial switch settings in the registry, environmental variables. The default value is the empty string ("").

See Also

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