System::Net::Dns::GetHostAddresses method

Dns::GetHostAddresses 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)
ParameterTypeDescription
hostNameOrAddressStringThe string that contains a hostname or IP address.

ReturnValue

A collection of IP addresses.

See Also