Share via


UnityContainerBase.RegisterType Method

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.

Overload List

  Name Description
Ee650896.pubmethod(en-us,PandP.10).gif RegisterType<T>(array<InjectionMember[])
Register a type with specific members to be injected.
Ee650896.pubmethod(en-us,PandP.10).gif RegisterType<TFrom, TTo>(array<InjectionMember[])
RegisterType a type mapping with the container.
Ee650896.pubmethod(en-us,PandP.10).gif RegisterType<T>(LifetimeManager, array<InjectionMember[])
RegisterType a LifetimeManager for the given type with the container. No type mapping is performed for this type.
Ee650896.pubmethod(en-us,PandP.10).gif RegisterType<TFrom, TTo>(LifetimeManager, array<InjectionMember[])
RegisterType a type mapping with the container, where the created instances will use the given LifetimeManager.
Ee650896.pubmethod(en-us,PandP.10).gif RegisterType<T>(String, array<InjectionMember[])
Register a LifetimeManager for the given type with the container. No type mapping is performed for this type.
Ee650896.pubmethod(en-us,PandP.10).gif RegisterType<TFrom, TTo>(String, array<InjectionMember[])
RegisterType a type mapping with the container.
Ee650896.pubmethod(en-us,PandP.10).gif RegisterType(Type, array<InjectionMember[])
Register a type with specific members to be injected.
Ee650896.pubmethod(en-us,PandP.10).gif RegisterType<T>(String, LifetimeManager, array<InjectionMember[])
RegisterType a LifetimeManager for the given type and name with the container. No type mapping is performed for this type.
Ee650896.pubmethod(en-us,PandP.10).gif RegisterType<TFrom, TTo>(String, LifetimeManager, array<InjectionMember[])
RegisterType a type mapping with the container, where the created instances will use the given LifetimeManager.
Ee650896.pubmethod(en-us,PandP.10).gif RegisterType(Type, LifetimeManager, array<InjectionMember[])
RegisterType a LifetimeManager for the given type and name with the container. No type mapping is performed for this type.
Ee650896.pubmethod(en-us,PandP.10).gif RegisterType(Type, String, array<InjectionMember[])
Register a LifetimeManager for the given type and name with the container. No type mapping is performed for this type.
Ee650896.pubmethod(en-us,PandP.10).gif RegisterType(Type, Type, array<InjectionMember[])
RegisterType a type mapping with the container.
Ee650896.pubmethod(en-us,PandP.10).gif RegisterType(Type, String, LifetimeManager, array<InjectionMember[])
RegisterType a LifetimeManager for the given type and name with the container. No type mapping is performed for this type.
Ee650896.pubmethod(en-us,PandP.10).gif RegisterType(Type, Type, LifetimeManager, array<InjectionMember[])
RegisterType a type mapping with the container, where the created instances will use the given LifetimeManager.
Ee650896.pubmethod(en-us,PandP.10).gif RegisterType(Type, Type, String, array<InjectionMember[])
RegisterType a type mapping with the container.
Ee650896.pubmethod(en-us,PandP.10).gif RegisterType(Type, Type, String, LifetimeManager, array<InjectionMember[])
RegisterType a type mapping with the container, where the created instances will use the given LifetimeManager.

See Also

UnityContainerBase Class

UnityContainerBase Members

Microsoft.Practices.Unity Namespace