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.
The DataSources property retrieves an IWMSPluginsIWMSPlugins Object (C#) that contains a collection of data source plug-ins.
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
using Microsoft.WindowsMediaServices.Interop;
using System.Runtime.InteropServices;
// Declare variables.
WMSServer Server;
IWMSPlugins Plugins;
try {
// Create a new WMSServer object.
Server = new WMSServerClass();
// 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.