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
SimpleInjector.AdvancedApiObject
SimpleInjectorInjectionTargetInfo
Namespace: SimpleInjector
Assembly: SimpleInjector (in SimpleInjector.dll) Version: 5.3.0
Syntax
public sealed class InjectionTargetInfo : ApiObject, IEquatable<InjectionTargetInfo>
The InjectionTargetInfo type exposes the following members.
Properties
Name | Description | |
---|---|---|
Member | 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. | |
Name | Gets the name of the target. | |
Parameter |
Gets the constructor argument of the consumer of the component where the dependency will be
injected into. The property can return null.
| |
Property |
Gets the property of the consumer of the component where the dependency will be injected into.
The property can return null.
| |
TargetType | Gets the type of the target. |
Methods
Name | Description | |
---|---|---|
Equals(Object) | Determines whether the specified object is equal to the current object. (Overrides ApiObjectEquals(Object).) | |
Equals(InjectionTargetInfo) | Indicates whether the current object is equal to another object of the same type. | |
GetCustomAttribute(Type) |
Retrieves a custom attribute of a specified type that is applied to a specified parameter.
| |
GetCustomAttribute(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.
| |
GetCustomAttributeT |
Retrieves a custom attribute of a specified type that is applied to a specified parameter.
| |
GetCustomAttributeT(Boolean) |
Retrieves a custom attribute of a specified type that is applied to a specified parameter, and
optionally inspects the ancestors of that parameter.
| |
GetCustomAttributes(Boolean) | ||
GetCustomAttributes(Type, Boolean) | ||
GetCustomAttributesT |
Retrieves a collection of custom attributes of a specified type that are applied to a specified
parameter.
| |
GetCustomAttributesT(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.
| |
GetHashCode | Serves as the default hash function. (Overrides ApiObjectGetHashCode.) | |
GetType | Gets the Type of the current instance. (Inherited from ApiObject.) | |
IsDefined | ||
ToString | Returns a string that represents the current object. (Inherited from ApiObject.) |
See Also