IWMSServer.DataSources (Visual Basic .NET)
Previous | Next |
IWMSServer.DataSources (Visual Basic .NET)
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
Imports Microsoft.WindowsMediaServices.Interop Imports System.Runtime.InteropServices Private Sub GetDataSources() ' Declare variables. Dim Server As WMSServer Dim Plugins As IWMSPlugins Try ' Create the WMSServer object. Server = New WMSServer() ' Retrieve a pointer to an IWMSPlugins interface ' containing data source plug-ins. Plugins = Server.DataSources 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 |