System.Diagnostics.TraceSwitch.TraceWarning Property

Gets a value indicating whether the switch allows warning messages.

Syntax

public bool TraceWarning { get; }

Value

Documentation for this section has not yet been entered.

Remarks

You can use the TraceSwitch.TraceError, TraceSwitch.TraceWarning, TraceSwitch.TraceInfo, and TraceSwitch.TraceVerbose properties in conjunction with the System.Diagnostics.Debug and System.Diagnostics.Trace classes to emit all messages with a specified importance or greater. When the TraceSwitch.Level property is set to TraceLevel.Warning, warnings and error-handling messages are emitted.

Requirements

Namespace: System.Diagnostics
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0