UnityContainerExtension.Remove 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. |
Removes the extension's functions from the container.
Namespace: Microsoft.Practices.Unity
Assembly: Microsoft.Practices.Unity (in Microsoft.Practices.Unity.dll)
Syntax
'Declaration
Public Overridable Sub Remove
public virtual void Remove()
public:
virtual void Remove()
public function Remove()
Remarks
This method is called when extensions are being removed from the container. It can be used to do things like disconnect event handlers or clean up member state. You do not need to remove strategies or policies here; the container will do that automatically.
The default implementation of this method does nothing.