IWMSServer.CreatePlaylist (Visual Basic .NET)
.gif)
| Previous | Next |
IWMSServer.CreatePlaylist (Visual Basic .NET)
The CreatePlaylist method creates an IXMLDOMDocument object.
Syntax
IXMLDOMDocument = IWMSServer.CreatePlaylist
Parameters
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. |
Remarks
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
Try
' 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.
Finally
' TODO: Clean-up code goes here.
End Try
End Sub
Requirements
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 |