Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
.gif)
| Previous | Next |
IWMSServer.CreatePlaylist (C#)
The CreatePlaylist method creates an IXMLDOMDocument object.
Syntax
IXMLDOMDocument = IWMSServer.CreatePlaylist();
Parameters
This method takes no parameters.
Return Values
This method returns an IXMLDOMDocument object.
If this method fails, it throws an exception.
| Number | Description |
| 0x80004005 | An error occurred. |
Remarks
You can use the IXMLDomDocument.load method to load a playlist.
Example Code
using Microsoft.WindowsMediaServices.Interop;
using System.Runtime.InteropServices;
// Create a new playlist object that can be
// built programmatically.
Playlist = Server.CreatePlaylist();
}
catch (COMException comExc) {
// TODO: Handle COM exceptions.
}
catch (Exception e) {
// TODO: Handle exceptions.
}
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 |