Share via


ViewManager.Dispose Method

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Releases all resources used by the ViewManager.

Namespace:  Microsoft.Windows.Design.Documents
Assembly:  Microsoft.Windows.Design.Markup (in Microsoft.Windows.Design.Markup.dll)

Syntax

'Declaration
Public Sub Dispose
'Usage
Dim instance As ViewManager

instance.Dispose()
public void Dispose()
public:
virtual void Dispose() sealed
public final function Dispose()

Implements

IDisposable.Dispose()

Remarks

Call Dispose() when you are finished using the ViewManager. The Dispose() method leaves the ViewManager in an unusable state. After calling Dispose(), you must release all references to the ViewManager so the garbage collector can reclaim the memory that the ViewManager was occupying. For more information, see Cleaning Up Unmanaged Resources and Implementing a Dispose Method.

Note

Always call Dispose() before you release your last reference to the ViewManager. Otherwise, the resources it is using will not be freed until the garbage collector calls the ViewManager object's Finalize method.

.NET Framework Security

See Also

Reference

ViewManager Class

ViewManager Members

Dispose Overload

Microsoft.Windows.Design.Documents Namespace

Other Resources

WPF Designer Extensibility