InjectionTargetInfoIsDefined Method

Simple Injector
Indicates whether one or more instance of attributeType is defined on this either the Parameter or the Property.

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

public bool IsDefined(
	Type attributeType,
	bool inherit
)

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: Boolean
true if the attributeType is defined on this member; false otherwise.
See Also

Reference