This topic has not yet been rated - Rate this topic

IUnityContainer.RemoveAllExtensions Method

Remove all installed extensions from this container.

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

Return Value

The UnityContainer object that this method was called on (this in C#, Me in Visual Basic).

This method removes all extensions from the container, including the default ones that implement the out-of-the-box behavior. After this method, if you want to use the container again you will need to either readd the default extensions or replace them with your own.

The registered instances and singletons that have already been set up in this container do not get removed.

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.