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.Item (Visual Basic .NET)
The Item property retrieves a specific IP address, by index, from the IWMSAvailableIPAddresses collection.
Syntax
String = IWMSAvailableIPAddresses.Item( varIndex As Variant )
Parameters
varIndex
[in] Variant containing the index of the IP address.
Property Value
A String containing an IP address.
Remarks
This property is read-only.
Example Code
Imports Microsoft.WindowsMediaServices.Interop
Imports System.Runtime.InteropServices
Private Sub GetIPAddress()
' Declare variables.
Dim Server As WMSServer
Dim AvlIPAddresses As IWMSAvailableIPAddresses
Dim strIPAddress As String
Dim i As Integer
Try
' Create the WMSServer object.
Server = New WMSServer()
' Retrieve the IWMSAvailableIPAddresses object
' and retrieve the number of IP addresses.
AvlIPAddresses = Server.AvailableIPAddresses
For i = 0 To Server.AvailableIPAddresses.Count - 1
' Retrieve each IP address.
strIPAddress = Server.AvailableIPAddresses.Item(i)
Next i
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 |