Delen via


MarkupDocumentManager.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 MarkupDocumentManager.

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 MarkupDocumentManager

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 MarkupDocumentManager. The Dispose() method leaves the MarkupDocumentManager in an unusable state. After calling Dispose(), you must release all references to the MarkupDocumentManager so the garbage collector can reclaim the memory that the MarkupDocumentManager 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 MarkupDocumentManager. Otherwise, the resources it is using will not be freed until the garbage collector calls the MarkupDocumentManager object's Finalize method.

.NET Framework Security

See Also

Reference

MarkupDocumentManager Class

MarkupDocumentManager Members

Microsoft.Windows.Design.Documents Namespace

Other Resources

WPF Designer Extensibility