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!

TraceSwitch.Level

Gets or sets the trace level which specifies what messages to output for tracing and debugging.

[Visual Basic]
Public Property Level As TraceLevel
[C#]
public TraceLevel Level {get; set;}
[C++]
public: __property TraceLevel get_Level();
public: __property void set_Level(TraceLevel);
[JScript]
public function get Level() : TraceLevel;
public function set Level(TraceLevel);

Property Value

One of the TraceLevel values that specifies what messages to output for tracing and debugging.

Exceptions

Exception Type Condition
ArgumentException Setting the level to a value not in the TraceLevel enumeration.

Remarks

The default value is Off. The level can be set by an external setting file.

Setting this property will update the TraceError, TraceWarning, TraceInfo, and TraceVerbose properties in this class.

See Also

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