GetHostAddresses()

Dns::GetHostAddresses(String) method

Returns a collection of IP addresses of the specified host name or IP address.

static System::ArrayPtr<System::SharedPtr<IPAddress>> System::Net::Dns::GetHostAddresses(String hostNameOrAddress)

Arguments

ParameterTypeDescription
hostNameOrAddressStringThe string that contains a hostname or IP address.

Return Value

A collection of IP addresses.

See Also