Returns an array of custom attributes defined on either the Parameter or
the Property, identified by type, or an empty array if there are no custom
attributes of that type.
Namespace: SimpleInjector
Assembly: SimpleInjector (in SimpleInjector.dll) Version: 5.3.0
Syntax
Parameters
- attributeType
- Type: SystemType
The type of the custom attributes. - 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. |
ArgumentNullException | Thrown when attributeType is null. |
See Also