System.Diagnostics.TraceSwitch Members

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

See Also: Inherited members from System.Diagnostics.Switch

Public Constructors

Initializes a new instance of the System.Diagnostics.TraceSwitch class, using the specified display name and description.

Initializes a new instance of the System.Diagnostics.TraceSwitch class, using the specified display name, description, and default value for the switch.

Public Properties

LevelTraceLevel.

Gets or sets the trace level that determines the messages the switch allows.

[read-only]
TraceErrorbool.

Gets a value indicating whether the switch allows error-handling messages.

[read-only]
TraceInfobool.

Gets a value indicating whether the switch allows informational messages.

[read-only]
TraceVerbosebool.

Gets a value indicating whether the switch allows all messages.

[read-only]
TraceWarningbool.

Gets a value indicating whether the switch allows warning messages.

Protected Methods

override
OnSwitchSettingChanged()

Updates and corrects the level for this switch.

override
OnValueChanged()

Sets the Switch.SwitchSetting property to the integer equivalent of the Switch.Value property.