Share via


XmlEditingScope.Complete Method

Completes all edits that were made while this XmlEditingScope object was active on any of the XmlModel objects in the associated XmlStore. This method pushes the changes to the underlying IVsTextLines buffers, and adds an undo unit to the IOleUndoManager provided to the associated XmlStore instance.

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

Usage

'Usage
Dim instance As XmlEditingScope

instance.Complete

Syntax

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

Remarks

If this method succeeds, the XmlEditingScopeStatus is set to Completed.If this method fails, the status is set to Reverted. If this XmlEditingScope is the top-most parent, an EditingScopeCompleted event will be raised on every XmlStore object that is affected by the XmlModel changes.

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

See Also

Reference

XmlEditingScope Class
XmlEditingScope Members
Microsoft.VisualStudio.XmlEditor Namespace

Build Date:

2012-11-12