IWMSServer.DataSources (C#)
.gif)
| Previous | Next |
IWMSServer.DataSources (C#)
The DataSources property retrieves an IWMSPlugins object that contains a collection of data source plug-ins.
Syntax
IWMSPlugins = IWMSServer.DataSources;
Property Value
An IWMSPlugins object that contains the collection data source plug-ins.
Remarks
This property is read-only. You can use data source plug-ins to receive content from an encoder, a file system, a network.
The following system plug-ins can be accessed by using the DataSources property.
| Plug-in | Description |
| WMS File Data Source | Enables the Windows Media server to access playlist and media files that are stored on a FAT, FAT32, NTFS, or CIFS file system. |
| WMS HTTP Download Data Source | Enables a Windows Media server to access playlist files from a Web server. |
| WMS Network Data Source | Enables a Windows Media server to pull a distribution stream from an upstream server or encoder. |
| WMS Push Data Source | Enables push distribution of a stream from an encoder to a Windows Media server. |
To create custom data source plug-ins, see Creating Data Source Plug-ins.
Example Code
using Microsoft.WindowsMediaServices.Interop;
using System.Runtime.InteropServices;
// Retrieve a pointer to an IWMSPlugins interface
// containing data source plug-ins.
Plugins = Server.DataSources;
}
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 |