Share via


InjectionConstructorAttribute Class

Retired Content

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

The latest Unity Application Block information can be found at the Unity Application Block site.

This attribute is used to indicate which constructor to choose when the container attempts to build a type.

Namespace:  Microsoft.Practices.Unity
Assembly:  Microsoft.Practices.Unity (in Microsoft.Practices.Unity.dll)

Syntax

'Declaration
<AttributeUsageAttribute(AttributeTargets.Constructor)> _
Public NotInheritable Class InjectionConstructorAttribute _
    Inherits Attribute
[AttributeUsageAttribute(AttributeTargets.Constructor)]
public sealed class InjectionConstructorAttribute : Attribute
[AttributeUsageAttribute(AttributeTargets::Constructor)]
public ref class InjectionConstructorAttribute sealed : public Attribute
public final class InjectionConstructorAttribute extends Attribute

Inheritance Hierarchy

System.Object
  System.Attribute
    Microsoft.Practices.Unity.InjectionConstructorAttribute

See Also

InjectionConstructorAttribute Members

Microsoft.Practices.Unity Namespace