InjectionTargetInfoGetCustomAttributes Method (Boolean)

Simple Injector
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: 4.0.0
Syntax

public Object[] GetCustomAttributes(
	bool inherit
)

Parameters

inherit
Type: SystemBoolean
When true, look up the hierarchy chain for the inherited custom attribute.

Return Value

Type: Object
An array of Objects representing custom attributes, or an empty array.
Exceptions

ExceptionCondition
TypeLoadExceptionThe custom attribute type cannot be loaded.
AmbiguousMatchExceptionThere is more than one attribute of type attributeType defined on this member.
See Also

Reference