SwitchAttribute::GetAll Method (Assembly^)
.NET Framework (current version)
Returns all switch attributes for the specified assembly.
Assembly: System (in System.dll)
Parameters
- assembly
-
Type:
System.Reflection::Assembly^
The assembly to check for switch attributes.
Return Value
Type: array<System.Diagnostics::SwitchAttribute^>^An array that contains all the switch attributes for the assembly.
| Exception | Condition |
|---|---|
| ArgumentNullException | assembly is null. |
The following code example shows the use of the GetAll method to identify the switches used in an assembly. This code example is part of a larger example provided for the TraceSource class.
.NET Framework
Available since 2.0
Available since 2.0
Show: