Parameters
- inherit
- Specifies whether to search this member's inheritance chain to find the attributes.
Return Value
An array that contains all the custom attributes, or an array with zero elements if no attributes are defined.
Exception | Description |
---|---|
System.InvalidOperationException | This member belongs to a type that is loaded into the reflection-only context. See How to: Load Assemblies into the Reflection-Only Context. |
System.TypeLoadException | A custom attribute type cannot be loaded. |