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 |
IWMSAvailableIPAddresses Object (Visual Basic .NET)
The IWMSAvailableIPAddresses object contains a collection of IP addresses. You can use this object to specify an IP address for a control protocol plug-in.
The IWMSAvailableIPAddresses object exposes the following properties.
| Property | Description |
| Count | Retrieves the number of IP addresses in the IWMSAvailableIPAddresses collection. |
| Item | Retrieves a specific IP address, by index, from the IWMSAvailableIPAddresses collection. |
| length | Retrieves the number of IP addresses in the IWMSAvailableIPAddresses collection. This property is provided for JScript compatibility. |
Example Code
The following example illustrates how to retrieve an IWMSAvailableIPAddresses object.
Imports Microsoft.WindowsMediaServices.Interop
Imports System.Runtime.InteropServices
Private Sub RetrieveObj()
' Declare variables.
Dim Server As WMSServer
Dim AvlIPAddresses As IWMSAvailableIPAddresses
Try
' Create the WMSServer object.
Server = New WMSServer()
' Retrieve the IWMSAvailableIPAddresses object.
AvlIPAddresses = Server.AvailableIPAddresses
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 |