UnityContainer Methods

Include Protected Members
Include Inherited Members

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 Enterprise Library information can be found at the Enterprise Library site.

The UnityContainer type exposes the following members.

Methods

  Name Description
Public method AddExtension
Public method BuildUp
Public method Configure
Public method CreateChildContainer
Public method Dispose()
Protected method Dispose(Boolean)
Public method Equals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected method Finalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public method GetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected method MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public method RegisterInstance
Public method RegisterType
Public method RemoveAllExtensions
Public method Resolve
Public method ResolveAll
Public method Teardown
Public method ToString
Returns a String that represents the current Object.
(Inherited from Object.)

Extension Methods

  Name Description
Public Extension Method AddExtensionIfNotPresent
Add a new extension to the given container, only if the extension hasn't already been added to the container.
(Defined by UnityContainerExtensions.)
Public Extension Method AddNewExtension<TExtension> (Defined by UnityContainerExtensions.)
Public Extension Method AddNewExtensionIfNotPresent<TExtension>
Add a new extension to the given container, only if the extension hasn't already been added to the container.
(Defined by UnityContainerExtensions.)
Public Extension Method BuildUp(Type, Object, array<ResolverOverride[]) Overloaded. (Defined by UnityContainerExtensions.)
Public Extension Method BuildUp<T>(T, array<ResolverOverride[]) Overloaded. (Defined by UnityContainerExtensions.)
Public Extension Method BuildUp<T>(T, String, array<ResolverOverride[]) Overloaded. (Defined by UnityContainerExtensions.)
Public Extension Method Configure<TConfigurator> (Defined by UnityContainerExtensions.)
Public Extension Method IsRegistered(Type) Overloaded. (Defined by UnityContainerExtensions.)
Public Extension Method IsRegistered(Type, String) Overloaded. (Defined by UnityContainerExtensions.)
Public Extension Method IsRegistered<T>() Overloaded. (Defined by UnityContainerExtensions.)
Public Extension Method IsRegistered<T>(String) Overloaded. (Defined by UnityContainerExtensions.)
Public Extension Method RegisterInstance(Type, Object) Overloaded. (Defined by UnityContainerExtensions.)
Public Extension Method RegisterInstance(Type, Object, LifetimeManager) Overloaded. (Defined by UnityContainerExtensions.)
Public Extension Method RegisterInstance(Type, String, Object) Overloaded. (Defined by UnityContainerExtensions.)
Public Extension Method RegisterInstance<TInterface>(TInterface) Overloaded. (Defined by UnityContainerExtensions.)
Public Extension Method RegisterInstance<TInterface>(TInterface, LifetimeManager) Overloaded. (Defined by UnityContainerExtensions.)
Public Extension Method RegisterInstance<TInterface>(String, TInterface) Overloaded. (Defined by UnityContainerExtensions.)
Public Extension Method RegisterInstance<TInterface>(String, TInterface, LifetimeManager) Overloaded. (Defined by UnityContainerExtensions.)
Public Extension Method RegisterType(Type, array<InjectionMember[]) Overloaded. (Defined by UnityContainerExtensions.)
Public Extension Method RegisterType(Type, Type, array<InjectionMember[]) Overloaded. (Defined by UnityContainerExtensions.)
Public Extension Method RegisterType(Type, LifetimeManager, array<InjectionMember[]) Overloaded. (Defined by UnityContainerExtensions.)
Public Extension Method RegisterType(Type, String, array<InjectionMember[]) Overloaded. (Defined by UnityContainerExtensions.)
Public Extension Method RegisterType(Type, Type, String, array<InjectionMember[]) Overloaded. (Defined by UnityContainerExtensions.)
Public Extension Method RegisterType(Type, Type, LifetimeManager, array<InjectionMember[]) Overloaded. (Defined by UnityContainerExtensions.)
Public Extension Method RegisterType(Type, String, LifetimeManager, array<InjectionMember[]) Overloaded. (Defined by UnityContainerExtensions.)
Public Extension Method RegisterType<T>(array<InjectionMember[]) Overloaded. (Defined by UnityContainerExtensions.)
Public Extension Method RegisterType<T>(String, array<InjectionMember[]) Overloaded. (Defined by UnityContainerExtensions.)
Public Extension Method RegisterType<T>(LifetimeManager, array<InjectionMember[]) Overloaded. (Defined by UnityContainerExtensions.)
Public Extension Method RegisterType<T>(String, LifetimeManager, array<InjectionMember[]) Overloaded. (Defined by UnityContainerExtensions.)
Public Extension Method RegisterType<TFrom, TTo>(array<InjectionMember[]) Overloaded. (Defined by UnityContainerExtensions.)
Public Extension Method RegisterType<TFrom, TTo>(String, array<InjectionMember[]) Overloaded. (Defined by UnityContainerExtensions.)
Public Extension Method RegisterType<TFrom, TTo>(LifetimeManager, array<InjectionMember[]) Overloaded. (Defined by UnityContainerExtensions.)
Public Extension Method RegisterType<TFrom, TTo>(String, LifetimeManager, array<InjectionMember[]) Overloaded. (Defined by UnityContainerExtensions.)
Public Extension Method Resolve(Type, array<ResolverOverride[]) Overloaded. (Defined by UnityContainerExtensions.)
Public Extension Method Resolve<T>(array<ResolverOverride[]) Overloaded. (Defined by UnityContainerExtensions.)
Public Extension Method Resolve<T>(String, array<ResolverOverride[]) Overloaded. (Defined by UnityContainerExtensions.)
Public Extension Method ResolveAll<T> (Defined by UnityContainerExtensions.)

See Also

UnityContainer Class

Microsoft.Practices.Unity Namespace