System.Diagnostics.Switch.GetSupportedAttributes Method

Gets the custom attributes supported by the switch.

Syntax

protected virtual string[] GetSupportedAttributes ()

Returns

A string array that contains the names of the custom attributes supported by the switch, or null if there no custom attributes are supported.

Remarks

The default implementation for the Switch.GetSupportedAttributes method returns null. If a switch is added in a configuration file and custom attributes are specified that are not included in the string array returned by Switch.GetSupportedAttributes, a System.Configuration.ConfigurationException is thrown when the switch is loaded.

Requirements

Namespace: System.Diagnostics
Assembly: System (in System.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0