XmlModel.Dispose Method ()

 

Releases all resources used by the current instance of the XmlModel class.

Namespace:   Microsoft.VisualStudio.XmlEditor
Assembly:  Microsoft.VisualStudio.XmlEditor (in Microsoft.VisualStudio.XmlEditor.dll)

Syntax

public abstract void Dispose()
public:
virtual void Dispose() abstract
abstract Dispose : unit -> unit
Public MustOverride Sub Dispose

Implements

IDisposable.Dispose()

Remarks

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

See Also

XmlModel Class
Microsoft.VisualStudio.XmlEditor Namespace

Return to top