DesignSurfaceManager.Dispose Method ()


Releases the resources used by the DesignSurfaceManager.

Namespace:   System.ComponentModel.Design
Assembly:  System.Design (in System.Design.dll)

public void Dispose()

The public Dispose method follows the standard IDisposable pattern. Calling this method destroys the design surface manager. It also disposes the service container, which causes all services that implement IDisposable to also be disposed. The protected version of this method is virtual and follows the normal IDisposable pattern.


Because DesignSurfaceManager does not have any native code to clean up, it does not have a finalizer that calls Dispose. If you need to call Dispose, you must add a finalizer yourself.

.NET Framework
Available since 2.0
Return to top