Share via


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)

Usage

'Usage
Dim instance As XmlEditingScope

instance.Dispose

Syntax

'Declaration
Public MustOverride Sub Dispose
public abstract void Dispose ()
public:
virtual void Dispose () abstract
public abstract void Dispose ()
public abstract function Dispose ()

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.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003 , Windows Server 2008, and Windows 2000

Target Platforms

Change History

See Also

Reference

XmlEditingScope Class
XmlEditingScope Members
Microsoft.VisualStudio.XmlEditor Namespace

Build Date:

2012-11-12