XmlModel Class

 

Represents one XML Editor buffer and returns a parse tree over that buffer in the form of an XDocument object.

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

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.XmlEditor.XmlModel

Syntax

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

Constructors

Name Description
System_CAPS_protmethod XmlModel()

Initializes a new instance of the XmlModel class.

Properties

Name Description
System_CAPS_pubproperty Document

Gets the XDocument object that represents the current parse tree for the XML Editor buffer.

System_CAPS_pubproperty Name

Gets the file name used to open this model.

System_CAPS_pubproperty SaveActionOnDispose

Gets or sets whether to save the action when dispose is called.

System_CAPS_pubproperty Store

Gets the XmlStore that this XmlModel belongs to.

Methods

Name Description
System_CAPS_pubmethod Dispose()

Releases all resources used by the current instance of the XmlModel 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 GetTextSpan(XObject)

Gets the TextSpan object that represents the location of the specified node in the buffer.

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

Events

Name Description
System_CAPS_pubevent BufferReloaded

Occurs when the XDocument has been completely reloaded.

Remarks

An XmlModel object stays open until you call Dispose.

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