HostAddresses.Count Property

Returns the number of Address objects in a HostAddresses collection object.

Syntax

NSChannelMgr.HostAddresses.Count

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

See Also

HostAddresses.Item, Address objects , HostAddresses collection

© 1996-1998 Microsoft Corporation. All rights reserved.