DependencyInjectionInfoAttribute Properties |
The DependencyInjectionInfoAttribute type exposes the following members.
Name | Description | |
---|---|---|
ContextType |
Gets / sets contextType. ContextType is the specification of what kind of instance is injected: a shared instance (Singleton) or a new instance each time
an injection has to be made (NewInstancePerTarget, default).
| |
Property |
Gets / sets the propertyinfo object for the property to go.
| |
PropertyName |
Gets / sets propertyName, which is the name of the property to set with the instance of the type annotated with this attribute.
| |
TargetKind |
Gets / sets targetKind. Targetkind defines which types get the instance injected: only the specified type (absolute) or also all subtypes
(hierarchy, default). If this property is set to a value and TargetType is an interface, TargetKind will be reset to Absolute.
| |
TargetNamespaceFilter |
Gets / sets the targetNamespaceFilter string which contains semi-colon (;) separated names, or fragments of names of namespaces to limit
implementations of TargetType to, when TargetType is an interface. If any fragment specified is found as the start of the type�s namespace
name, that type is a valid target. Optional. If no targetnamespacefilter is specified, all types are targeted.
| |
TargetType |
Gets / sets targetType, into which to inject an instance of the type annotated with this attribute. Can be an interface, in
which case all types which implement the interface and thus with the specified propertyName will get the instance type injected (if applicable)
| |
TypeId | When implemented in a derived class, gets a unique identifier for this Attribute. (Inherited from Attribute.) |