InjectionTargetInfo Class

Simple Injector
Discovers the attributes of the code element (a property or parameter) where a dependency will be injected into, and provides access to its meta data.
Inheritance Hierarchy

SystemObject
  SimpleInjectorInjectionTargetInfo

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

public sealed class InjectionTargetInfo

The InjectionTargetInfo type exposes the following members.

Properties

  NameDescription
Public propertyMember
Gets the member of the target. This is either the constructor of the parameter, or in case the target is a property, the property itself will be returned.
Public propertyName
Gets the name of the target.
Public propertyParameter
Gets the constructor argument of the consumer of the component where the dependency will be injected into. The property can return null.
Public propertyProperty
Gets the property of the consumer of the component where the dependency will be injected into. The property can return null.
Public propertyTargetType
Gets the type of the target.
Top
Methods

  NameDescription
Public methodGetCustomAttribute(Type)
Retrieves a custom attribute of a specified type that is applied to a specified parameter.
Public methodGetCustomAttribute(Type, Boolean)
Retrieves a custom attribute of a specified type that is applied to a specified parameter, and optionally inspects the ancestors of that parameter.
Public methodGetCustomAttributeT
Retrieves a custom attribute of a specified type that is applied to a specified parameter.
Public methodGetCustomAttributeT(Boolean)
Retrieves a custom attribute of a specified type that is applied to a specified parameter, and optionally inspects the ancestors of that parameter.
Public methodGetCustomAttributes(Boolean)
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.
Public methodGetCustomAttributes(Type, Boolean)
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.
Public methodGetCustomAttributesT
Retrieves a collection of custom attributes of a specified type that are applied to a specified parameter.
Public methodGetCustomAttributesT(Boolean)
Retrieves a collection of custom attributes of a specified type that are applied to a specified parameter, and optionally inspects the ancestors of that parameter.
Public methodIsDefined
Indicates whether one or more instance of attributeType is defined on this either the Parameter or the Property.
Top
See Also

Reference