AdapterCount Property  

Returns the number of available local and remote network adapters.




The AdapterCount property returns the number of local and remote dial-up networking adapters available on the local system. This value can be used in conjunction with the AdapterAddress property array to enumerate the IP addresses assigned to the various network adapters.

Note that it is possible that the AdapterCount property will return 0, and AdapterAddress(0) will return an empty string. This indicates that the system does not have a physical network adapter with an assigned IP address, and there are no dial-up networking connections currently active. If a dial-up networking connection is established at some later point, the AdapterCount property will change to 1, and the AdapterAddress(0) property will returned IP address allocated for that connection.

Data Type

Integer (Int32)

See Also

AdapterAddress Property, ServerAddress Property, ServerName Property