IWMSServer.CreatePlaylist (Visual Basic .NET)

banner art

Previous Next

IWMSServer.CreatePlaylist (Visual Basic .NET)

The CreatePlaylist method creates an IXMLDOMDocument object.


  IXMLDOMDocument = IWMSServer.CreatePlaylist


This method takes no parameters.

Property Value

An IXMLDOMDocument object.

If this property fails, it returns an error number.

Number Description
0x80004005 An error occurred.


You can use the Load method in the IXMLDOMDocument object to load a playlist.

Example Code

Imports Microsoft.WindowsMediaServices.Interop
Imports System.Runtime.InteropServices

Private Sub CreatePlaylist()

    ' Declare variables.
    Dim Server As WMSServer
    Dim Playlist As MSXML.IXMLDOMDocument

    ' Create the WMSServer object.
    Server = New WMSServer()

    ' Create a new playlist object that can be
    ' built programmatically.
    Playlist = Server.CreatePlaylist

Catch excCom As COMException
    ' TODO: Handle COM exceptions.
Catch exc As Exception
    ' TODO: Handle errors.
    ' TODO: Clean-up code goes here.
End Try

End Sub


Reference: Add a reference to Microsoft.WindowsMediaServices.

Namespace: Microsoft.WindowsMediaServices.Interop.

Assembly: Microsoft.WindowsMediaServices.dll.

Library: WMSServerTypeLib.dll.

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

See Also

Previous Next