InjectionTargetInfoGetCustomAttribute Method (Type)

Simple Injector
Retrieves a custom attribute of a specified type that is applied to a specified parameter.

Namespace:  SimpleInjector
Assembly:  SimpleInjector (in SimpleInjector.dll) Version: 5.3.0
Syntax

public Attribute GetCustomAttribute(
	Type attributeType
)

Parameters

attributeType
Type: SystemType
The type of attribute to search for.

Return Value

Type: Attribute
A custom attribute that matches attributeType, or null if no such attribute is found.
See Also

Reference