XmlStore Class

 

Manages the XmlModel objects.

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

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.XmlEditor.XmlStore

Syntax

[CLSCompliantAttribute(false)]
public abstract class XmlStore : IDisposable
[CLSCompliantAttribute(false)]
public ref class XmlStore abstract : IDisposable
[<AbstractClass>]
[<CLSCompliantAttribute(false)>]
type XmlStore = 
    class
        interface IDisposable
    end
<CLSCompliantAttribute(False)>
Public MustInherit Class XmlStore
    Implements IDisposable

Constructors

Name Description
System_CAPS_protmethod XmlStore()

Initializes a new instance of the XmlStore class.

Properties

Name Description
System_CAPS_pubproperty CurrentEditingScope

Gets the current XmlEditingScope that is associated with this store.

System_CAPS_pubproperty SynchronizingObject

Gets or sets the ISynchronizeInvoke object.

System_CAPS_pubproperty UndoManager

Get or set the IOleUndoManager associated with this XmlStore.

System_CAPS_pubproperty XmlModels

Gets a list of all open XmlModel objects that are associated with this store.

Methods

Name Description
System_CAPS_pubmethod BeginEditingScope(String, Object)

Begins a new editing operation on one or more models in this XmlStore.

System_CAPS_pubmethod Dispose()

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

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod OpenXmlModel(Uri)

Loads a new XmlModel for the specified file name.

System_CAPS_pubmethod ToString()

(Inherited from Object.)

Events

Name Description
System_CAPS_pubevent EditingScopeCompleted

Occurs when edit operations have completed. This can be either when XmlEditingScope objects are created using the XmlEditingScope method or when the user makes changes in the XML Editor text view.

System_CAPS_pubevent UndoRedoCompleted

Occurs when a new XmlEditingScope object has been created as a result of an undo/redo operation.

Remarks

You only need one XmlStore object to manage all the XML files that you are editing in your designer. The current list of open XmlModel objects is the scope for any changes you make to those models. The XmlStore object tracks changes to the model when an XmlEditingScope is active and raises an EditingScopeCompleted event whenever the XmlEditingScope is completed or reverted, or when an undo/redo operation is performed.

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.

See Also

Microsoft.VisualStudio.XmlEditor Namespace

Return to top