Share via


InjectionMethodAttribute 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 mark methods that should be called when the container is building an object.

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

Syntax

'Declaration
<AttributeUsageAttribute(AttributeTargets.Method, AllowMultiple := False, Inherited := True)> _
Public NotInheritable Class InjectionMethodAttribute _
    Inherits Attribute
[AttributeUsageAttribute(AttributeTargets.Method, AllowMultiple = false, Inherited = true)]
public sealed class InjectionMethodAttribute : Attribute
[AttributeUsageAttribute(AttributeTargets::Method, AllowMultiple = false, Inherited = true)]
public ref class InjectionMethodAttribute sealed : public Attribute
public final class InjectionMethodAttribute extends Attribute

Inheritance Hierarchy

System.Object
  System.Attribute
    Microsoft.Practices.Unity.InjectionMethodAttribute

See Also

InjectionMethodAttribute Members

Microsoft.Practices.Unity Namespace