Returns an array of all of the custom attributes defined on either the Parameter or
the Property, excluding named attributes, or an empty array if there are no custom
attributes.
Namespace: SimpleInjector
Assembly: SimpleInjector (in SimpleInjector.dll) Version: 5.3.0
Syntax
Parameters
- inherit
- Type: SystemBoolean
When true, look up the hierarchy chain for the inherited custom attribute.
Return Value
Type: ObjectAn array of Objects representing custom attributes, or an empty array.
Exceptions
Exception | Condition |
---|---|
TypeLoadException | The custom attribute type cannot be loaded. |
AmbiguousMatchException | There is more than one attribute of type attributeType defined on this member. |
See Also