SwitchAttribute::SwitchType Property

 

Gets or sets the type of the switch.

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

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

Property Value

Type: System::Type^

The type of the switch.

Exception Condition
ArgumentNullException

SwitchType is set to null.

The following code example displays the value of the SwitchType property for all switches used in an assembly. This code example is part of a larger example provided for the TraceSource class.

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

.NET Framework
Available since 2.0
Return to top
Show: