IWMSAdminNetworkDataSourcePlugin Object (Visual Basic .NET)

banner art

Previous Next

IWMSAdminNetworkDataSourcePlugin Object (Visual Basic .NET)

The IWMSAdminNetworkDataSourcePlugin object is exposed by the WMS Network Data Source plug-in. This object allows you to control how data is received over different network protocols. The IWMSAdminNetworkDataSourcePlugin object exposes the following properties and methods.

Property Description
BufferingTime Specifies and retrieves the amount of time that the plug-in buffers data before sending it along the data path.
NumProtocolsSupported Retrieves the number of networking protocols supported by the plug-in.
NumUDPPortRanges Retrieves the number of UDP/TCP port number ranges that can be used by the data source plug-in to receive data.
ProxyHostName Retrieves the name of the proxy server.
ProxyPassword Retrieves a Boolean value indicating whether a proxy password has been set for a particular protocol.
ProxyPort Retrieves the port number to use for a particular protocol to receive content from an upstream proxy server.
ProxySettings Retrieves an enumeration value indicating the proxy mode for a particular protocol.
ProxyUserName Retrieves a user name that can be sent to a proxy server in response to an authentication challenge.
SupportedProtocolName Retrieves the name of a specific protocol from a list of supported protocols.
TCPEnabled Retrieves a Boolean value indicating whether the data source plug-in can use TCP when selecting a streaming protocol.
UDPEnabled Specifies and retrieves a Boolean value indicating whether the data source plug-in can use UDP when selecting a streaming protocol.
UDPPortRangeLowerBound Retrieves the lower bound of a specific UDP port range.
UDPPortRangeUpperBound Retrieves the upper bound of a specific UDP port range.
Method Description
AddUDPPortRange Adds a range of UDP/TCP port numbers that can be used by the data source plug-in to receive data.
DeleteAllUDPPortRanges Removes all of the UDP/TCP port number ranges that can be used by the data source plug-in to receive data.
SetProxyCredentials Specifies the user name and password that can be used to connect to a proxy.
SetProxyHostName Specifies the name of the proxy server.
SetProxyPort Specifies the port number used for streaming content to the proxy server.
SetProxySettings Specifies an enumeration value indicating the proxy mode for a particular protocol.

Example Code

The following example illustrates how to retrieve an IWMSAdminNetworkDataSourcePlugin object.

Imports Microsoft.WindowsMediaServices.Interop
Imports System.Runtime.InteropServices

Private Sub RetrieveObj()

    ' Declare variables.
    Dim Server As WMSServer
    Dim Plugin As IWMSPlugin
    Dim AdminNetDataSrc As IWMSAdminNetworkDataSourcePlugin

Try
    ' Create the WMSServer object.
    Server = New WMSServer()

    ' Retrieve the plug-in to be configured.
    Plugin = Server.DataSources.Item("WMS Network Data Source")

    ' Retrieve the custom interface of the plug-in.
    AdminNetDataSrc = Plugin.CustomInterface

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

See Also

Previous Next