Share via


IXMLDOMDocument.url (Visual Basic .NET)

banner art

Previous Next

IXMLDOMDocument.url (Visual Basic .NET)

The url property returns the URL for the most recently loaded XML document.

Syntax

  String = IXMLDOMDocument
  .url

Remarks

The property is read-only. It returns the URL from the most recent successful load. If the document is being built in memory, this property returns NULL.

The url property is not updated after saving a document using the save method. To update the url property, reload the document using the load method.

This property is an extension of the World Wide Web Consortium (W3C) Document Object Model (DOM).

Example Code

The following example creates an IXMLDOMDocument object and displays the URL of the playlist.

Imports interop_msxml
Imports Microsoft.WindowsMediaServices.Interop

On Error GoTo Err

' Declare variables.
Dim Server As New WMSServerClass()
Dim Playlist As IXMLDOMDocument

' Create a new playlist object.
Set Playlist = Server.CreatePlaylist

' Load a playlist.
Playlist.Load ("file://c:\wmpub\wmroot\simple.wsx")

' Display the URL for the XML document.
MsgBox Playlist.URL
Exit Sub

Err:
' TODO: Handle errors.

Requirements

Reference: Add references to Microsoft.WindowsMediaServices and interop_msxml.

Namespace: Microsoft.WindowsMediaServices.Interop, interop_msxml.

Assembly: Microsoft.WindowsMediaServices.dll, interop_msxml.dll.

Library: WMSServerTypeLib.dll, msxml.dll.

Platform: Windows Server 2003 family, Windows Server 2008 family.

See Also

Previous Next