Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

SwitchLevelAttribute::SwitchLevelType Property

 

Gets or sets the type that determines whether a trace should be written.

Namespace:   System.Diagnostics
Assembly:  System (in System.dll)

public:
property Type^ SwitchLevelType {
	Type^ get();
	void set(Type^ value);
}

Property Value

Type: System::Type^

The Type that determines whether a trace should be written.

Exception Condition
ArgumentNullException

The set operation failed because the value is null.

The level property of a switch is not necessarily named Level; for example, the level property of the BooleanSwitch class is Enabled.

The following code example displays the value of the SwitchLevelType property for the BooleanSwitch.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show:
© 2017 Microsoft