SwitchAttribute::GetAll Method (Assembly^)

 

Returns all switch attributes for the specified assembly.

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

public:
static array<SwitchAttribute^>^ GetAll(
	Assembly^ assembly
)

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.

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

.NET Framework
Available since 2.0
Return to top
Show: