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 |
IWMSBoundIPAddresses Object (Visual Basic .NET)
The IWMSBoundIPAddresses object contains a collection of string values used by control protocol plug-ins to bind certain protocols, such as HTTP, to specific IP addresses. It is exposed by the following system plug-ins:
- WMS HTTP Server Control Protocol plug-in
- WMS MMS Server Control Protocol plug-in
- WMS RTSP Server Control Protocol plug-in
- Note In Windows Server 2008 operating systems, the MMS protocol is not supported, and Windows Media Services does not provide an MMS Server Control Protocol plug-in.
The IWMSBoundIPAddresses object exposes the following methods.
| Method | Description |
| Add | Adds a new IP address string to the bound IP address collection. |
| Count | Retrieves the number of IP addresses in the IWMSBoundIPAddresses collection. |
| Item | Retrieves an IP address from the IWMSBoundIPAddresses collection. |
| length | Retrieves the number of IP addresses in the IWMSBoundIPAddresses collection. This method is included for JScript compatibility. |
| RemoveAll | Removes all IP addresses from the collection. |
Example Code
The following example illustrates how to retrieve an IWMSBoundIPAddresses object.
Imports Microsoft.WindowsMediaServices.Interop
Imports System.Runtime.InteropServices
Private Sub RetrieveObj()
' Declare variables.
Dim Server As WMSServer
Dim Plugin As IWMSPlugin
Dim CPAdmin As IWMSCPPluginAdmin
Dim BoundIPAddresses As IWMSBoundIPAddresses
Try
' Create the WMSServer object.
Server = New WMSServer()
' Retrieve the plug-in to be configured.
Plugin = Server.ControlProtocols.Item("WMS RTSP Server Control Protocol")
' Retrieve the custom interface of the plug-in.
CPAdmin = Plugin.CustomInterface
' Retrieve the list of bound IP addresses.
BoundIPAddresses = CPAdmin.BoundIPAddresses
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 |