InjectionFactory Class

A class that lets you specify a factory method the container will use to create the object.

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

Syntax

'Declaration
Public Class InjectionFactory _
    Inherits InjectionMember
public class InjectionFactory : InjectionMember
public ref class InjectionFactory : public InjectionMember
public class InjectionFactory extends InjectionMember

Remarks

This is a significantly easier way to do the same thing the old static factory extension was used for.

Inheritance Hierarchy

System.Object
Microsoft.Practices.Unity.InjectionMember
Microsoft.Practices.Unity.InjectionFactory

See Also

InjectionFactory Members

Microsoft.Practices.Unity Namespace