Share via


XmlStore.OpenXmlModel Method (Uri)

 

Loads a new XmlModel for the specified file name.

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

Syntax

public abstract XmlModel OpenXmlModel(
    Uri uri
)
public:
virtual XmlModel^ OpenXmlModel(
    Uri^ uri
) abstract
abstract OpenXmlModel : 
        uri:Uri -> XmlModel
Public MustOverride Function OpenXmlModel (
    uri As Uri
) As XmlModel

Parameters

  • uri
    Type: System.Uri

    The XML document to open. HTTP locations are supported.

Return Value

Type: Microsoft.VisualStudio.XmlEditor.XmlModel

The new XmlModel for the specified file name.

Remarks

There is only one XmlModel per XmlStore for a given buffer. Be sure to call Dispose when you are done with an XmlModel object. For example, your application should call Dispose when a user closes the designer window.

This method can only be called from the background thread when the SynchronizingObject property is set. The background thread uses the SynchronizingObject property to marshal a call to the UI thread. 

Examples

See Also

XmlStore Class
Microsoft.VisualStudio.XmlEditor Namespace

Return to top