Share via


UnityContainer.Dispose 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.

Dispose this container instance.

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

Syntax

'Declaration
Public Overrides Sub Dispose
public override void Dispose()
public:
virtual void Dispose() override
public override function Dispose()

Implements

IDisposable.Dispose()

Remarks

Disposing the container also disposes any child containers, and disposes any instances whose lifetimes are managed by the container.

See Also

UnityContainer Class

Dispose Overload

Microsoft.Practices.Unity Namespace