Windows Media Services SDK banner art
PreviousNext

HostAddresses.Item Property

Returns the Address object as specified by the Index value.

Syntax

NSChannelMgr.HostAddresses[.Item]( Index )

Example

NSChannelMgr.Connect "LocalHost"
Dim Hosts
Set Hosts = NSChannelMgr.HostAddresses
' Write a list of addresses and properties
For i = 0 to Hosts.Count - 1
   str = "<B>Host #" & i & "</B><BR>"
   str = str + "Type: " & Hosts.Item(i).Type & "<BR>"
   str = str + "Port: " & Hosts.Item(i).Port & "<BR>"
   str = str + "Address: " & Hosts.Item(i).Address & "<BR><BR>"
Document.Write str
Next i

Remarks

The Item property is the default property for this object.

See Also

HostAddresses.Count, Address Objects, HostAddresses Collection Object

PreviousNext


© 1996-1999 Microsoft Corporation. All rights reserved.