UnityContainer Methods

The UnityContainer type exposes the following members.

Methods

Name Description
Ee650788.pubmethod(en-us,PandP.20).gif AddExtension
Add an extension object to the container.
Ee650788.pubmethod(en-us,PandP.20).gif BuildUp
Run an existing object through the container and perform injection on it.
Ee650788.pubmethod(en-us,PandP.20).gif Configure
Get access to a configuration interface exposed by an extension.
Ee650788.pubmethod(en-us,PandP.20).gif CreateChildContainer
Create a child container.
Ee650788.pubmethod(en-us,PandP.20).gif Dispose Overloaded.
Ee650788.pubmethod(en-us,PandP.20).gif Equals (Inherited from Object.)
Ee650788.protmethod(en-us,PandP.20).gif Finalize (Inherited from Object.)
Ee650788.pubmethod(en-us,PandP.20).gif GetHashCode (Inherited from Object.)
Ee650788.pubmethod(en-us,PandP.20).gif GetType (Inherited from Object.)
Ee650788.protmethod(en-us,PandP.20).gif MemberwiseClone (Inherited from Object.)
Ee650788.pubmethod(en-us,PandP.20).gif RegisterInstance
RegisterType an instance with the container.
Ee650788.pubmethod(en-us,PandP.20).gif RegisterType
RegisterType a type mapping with the container, where the created instances will use the given LifetimeManager.
Ee650788.pubmethod(en-us,PandP.20).gif RemoveAllExtensions
Remove all installed extensions from this container.
Ee650788.pubmethod(en-us,PandP.20).gif Resolve
Get an instance of the requested type with the given name from the container.
Ee650788.pubmethod(en-us,PandP.20).gif ResolveAll
Return instances of all registered types requested.
Ee650788.pubmethod(en-us,PandP.20).gif Teardown
Run an existing object through the container, and clean it up.
Ee650788.pubmethod(en-us,PandP.20).gif ToString (Inherited from Object.)

Extension Methods

Name Description
Ee650788.pubextension(en-us,PandP.20).gif AddNewExtension
Creates a new extension object and adds it to the container.
(Defined by UnityContainerExtensions.)
Ee650788.pubextension(en-us,PandP.20).gif BuildUp
Run an existing object through the container and perform injection on it.
(Defined by UnityContainerExtensions.)
Ee650788.pubextension(en-us,PandP.20).gif BuildUp
Run an existing object through the container and perform injection on it.
(Defined by UnityContainerExtensions.)
Ee650788.pubextension(en-us,PandP.20).gif BuildUp
Run an existing object through the container and perform injection on it.
(Defined by UnityContainerExtensions.)
Ee650788.pubextension(en-us,PandP.20).gif Configure
Resolve access to a configuration interface exposed by an extension.
(Defined by UnityContainerExtensions.)
Ee650788.pubextension(en-us,PandP.20).gif IsRegistered
Check if a particular type has been registered with the container with the default name.
(Defined by UnityContainerExtensions.)
Ee650788.pubextension(en-us,PandP.20).gif IsRegistered
Check if a particular type has been registered with the container with the default name.
(Defined by UnityContainerExtensions.)
Ee650788.pubextension(en-us,PandP.20).gif IsRegistered
Check if a particular type/name pair has been registered with the container.
(Defined by UnityContainerExtensions.)
Ee650788.pubextension(en-us,PandP.20).gif IsRegistered
Check if a particular type/name pair has been registered with the container.
(Defined by UnityContainerExtensions.)
Ee650788.pubextension(en-us,PandP.20).gif LoadConfiguration
Apply configuration from the default section and unnamed container element.
(Defined by UnityContainerExtensions.)
Ee650788.pubextension(en-us,PandP.20).gif LoadConfiguration
Apply configuration from the default section (named "unity" pulled out of ConfigurationManager) and the named container.
(Defined by UnityContainerExtensions.)
Ee650788.pubextension(en-us,PandP.20).gif LoadConfiguration
Apply configuration from the default container in the given section.
(Defined by UnityContainerExtensions.)
Ee650788.pubextension(en-us,PandP.20).gif LoadConfiguration
Apply configuration from the given section and named container into the given container.
(Defined by UnityContainerExtensions.)
Ee650788.pubextension(en-us,PandP.20).gif RegisterInstance
Register an instance with the container.
(Defined by UnityContainerExtensions.)
Ee650788.pubextension(en-us,PandP.20).gif RegisterInstance
Register an instance with the container.
(Defined by UnityContainerExtensions.)
Ee650788.pubextension(en-us,PandP.20).gif RegisterInstance
Register an instance with the container.
(Defined by UnityContainerExtensions.)
Ee650788.pubextension(en-us,PandP.20).gif RegisterInstance
Register an instance with the container.
(Defined by UnityContainerExtensions.)
Ee650788.pubextension(en-us,PandP.20).gif RegisterInstance
Register an instance with the container.
(Defined by UnityContainerExtensions.)
Ee650788.pubextension(en-us,PandP.20).gif RegisterInstance
Register an instance with the container.
(Defined by UnityContainerExtensions.)
Ee650788.pubextension(en-us,PandP.20).gif RegisterInstance
Register an instance with the container.
(Defined by UnityContainerExtensions.)
Ee650788.pubextension(en-us,PandP.20).gif RegisterType
Register a type with specific members to be injected.
(Defined by UnityContainerExtensions.)
Ee650788.pubextension(en-us,PandP.20).gif RegisterType
Register a type mapping with the container.
(Defined by UnityContainerExtensions.)
Ee650788.pubextension(en-us,PandP.20).gif RegisterType
Register a type mapping with the container.
(Defined by UnityContainerExtensions.)
Ee650788.pubextension(en-us,PandP.20).gif RegisterType
Register a LifetimeManager for the given type with the container. No type mapping is performed for this type.
(Defined by UnityContainerExtensions.)
Ee650788.pubextension(en-us,PandP.20).gif RegisterType
Register a type with specific members to be injected.
(Defined by UnityContainerExtensions.)
Ee650788.pubextension(en-us,PandP.20).gif RegisterType
Register a type mapping with the container, where the created instances will use the given LifetimeManager.
(Defined by UnityContainerExtensions.)
Ee650788.pubextension(en-us,PandP.20).gif RegisterType
Register a LifetimeManager for the given type with the container. No type mapping is performed for this type.
(Defined by UnityContainerExtensions.)
Ee650788.pubextension(en-us,PandP.20).gif RegisterType
Register a type mapping with the container, where the created instances will use the given LifetimeManager.
(Defined by UnityContainerExtensions.)
Ee650788.pubextension(en-us,PandP.20).gif RegisterType
Register a LifetimeManager for the given type and name with the container. No type mapping is performed for this type.
(Defined by UnityContainerExtensions.)
Ee650788.pubextension(en-us,PandP.20).gif RegisterType
Register a type mapping with the container.
(Defined by UnityContainerExtensions.)
Ee650788.pubextension(en-us,PandP.20).gif RegisterType
Register a LifetimeManager for the given type and name with the container. No type mapping is performed for this type.
(Defined by UnityContainerExtensions.)
Ee650788.pubextension(en-us,PandP.20).gif RegisterType
Register a LifetimeManager for the given type and name with the container. No type mapping is performed for this type.
(Defined by UnityContainerExtensions.)
Ee650788.pubextension(en-us,PandP.20).gif RegisterType
Register a type mapping with the container.
(Defined by UnityContainerExtensions.)
Ee650788.pubextension(en-us,PandP.20).gif RegisterType
Register a type mapping with the container, where the created instances will use the given LifetimeManager.
(Defined by UnityContainerExtensions.)
Ee650788.pubextension(en-us,PandP.20).gif RegisterType
Register a LifetimeManager for the given type and name with the container. No type mapping is performed for this type.
(Defined by UnityContainerExtensions.)
Ee650788.pubextension(en-us,PandP.20).gif Resolve
Resolve an instance of the default requested type from the container.
(Defined by UnityContainerExtensions.)
Ee650788.pubextension(en-us,PandP.20).gif Resolve
Resolve an instance of the requested type with the given name from the container.
(Defined by UnityContainerExtensions.)
Ee650788.pubextension(en-us,PandP.20).gif Resolve
Resolve an instance of the default requested type from the container.
(Defined by UnityContainerExtensions.)
Ee650788.pubextension(en-us,PandP.20).gif ResolveAll
Return instances of all registered types requested.
(Defined by UnityContainerExtensions.)

See Also

UnityContainer Class

Microsoft.Practices.Unity Namespace