UnityContainer.RegisterInstance Method
Dans cet article
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
RegisterInstance<TInterface>(TInterface)
RegisterType an instance with the container.
(Inherited from UnityContainerBase .)
RegisterInstance<TInterface>(String, TInterface)
RegisterType an instance with the container.
(Inherited from UnityContainerBase .)
RegisterInstance(Type, Object)
RegisterType an instance with the container.
(Inherited from UnityContainerBase .)
RegisterInstance<TInterface>(TInterface, LifetimeManager)
RegisterType an instance with the container.
(Inherited from UnityContainerBase .)
RegisterInstance<TInterface>(String, TInterface, LifetimeManager)
RegisterType an instance with the container.
(Inherited from UnityContainerBase .)
RegisterInstance(Type, Object, LifetimeManager)
RegisterType an instance with the container.
(Inherited from UnityContainerBase .)
RegisterInstance(Type, String, Object)
RegisterType an instance with the container.
(Inherited from UnityContainerBase .)
RegisterInstance(Type, String, Object, LifetimeManager)
RegisterType an instance with the container.
(Overrides UnityContainerBase.RegisterInstance(Type, String, Object, LifetimeManager) .)
See Also
UnityContainer Class
UnityContainer Members
Microsoft.Practices.Unity Namespace