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
  SimpleInjector.AdvancedApiObject
    SimpleInjectorInjectionTargetInfo

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

public sealed class InjectionTargetInfo : ApiObject, 
	IEquatable<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 methodEquals(Object)
Determines whether the specified object is equal to the current object.
(Overrides ApiObjectEquals(Object).)
Public methodEquals(InjectionTargetInfo)
Indicates whether the current object is equal to another object of the same type.
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 methodGetHashCode
Serves as the default hash function.
(Overrides ApiObjectGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from ApiObject.)
Public methodIsDefined
Indicates whether one or more instance of attributeType is defined on this either the Parameter or the Property.
Public methodToString
Returns a string that represents the current object.
(Inherited from ApiObject.)
Top
See Also

Reference