xtd 0.2.0
Loading...
Searching...
No Matches

◆ get_supported_attributes()

virtual std::vector< xtd::string > xtd::diagnostics::switch_base::get_supported_attributes ( ) const
protectedvirtualnoexcept

Gets the custom attributes supported by the switch.

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 get_supported_attributes method returns {} (empty array). If a switch is added in a configuration file and custom attributes are specified that are not included in the string array returned by get_supported_attributes, a configuration_exception is thrown when the switch is loaded.
Notes to Inheritors
When inheriting from the switch_base class or a derived class, you can override the get_supported_attributes() method to provide custom attributes for your class.