XmlEditingScope.Dispose Method ()
Releases all resources used by the current instance of the XmlEditingScope 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
Remarks
Call Dispose when you are finished using the XmlEditingScope. The Dispose method leaves the XmlEditingScope in an unusable state. After calling Dispose, you must release all references to the XmlEditingScope so the garbage collector can reclaim the memory that the XmlEditingScope occupied.
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 XmlEditingScope. Otherwise, the resources it uses will not be freed until the garbage collector calls the XmlEditingScope object's Finalize method.
See Also
XmlEditingScope Class
Microsoft.VisualStudio.XmlEditor Namespace
Return to top