System.Diagnostics.Switch Members

The members of System.Diagnostics.Switch are listed below.

See Also: Inherited members from System.Object

Protected Constructors

Initializes a new instance of the System.Diagnostics.Switch class.

Initializes a new instance of the System.Diagnostics.Switch class, specifying the display name, description, and default value for the switch.

Public Properties

[read-only]
AttributesSystem.Collections.Specialized.StringDictionary.

Gets the custom switch attributes defined in the application configuration file.

[read-only]
Descriptionstring.

Gets a description of the switch.

[read-only]
DisplayNamestring.

Gets a name used to identify the switch.

Protected Properties

SwitchSettingint.

Gets or sets the current setting for this switch.

Valuestring.

Gets or sets the value of the switch.

Protected Methods

GetSupportedAttributes() : string[]

Gets the custom attributes supported by the switch.

OnSwitchSettingChanged()

Invoked when the Switch.SwitchSetting property is changed.

OnValueChanged()

Invoked when the Switch.Value property is changed.