GetHostByName()

Dns::GetHostByName(String) method

Creates a new IPHostEntry-class instance using the specified host name.

static System::SharedPtr<IPHostEntry> System::Net::Dns::GetHostByName(String hostName)

Arguments

ParameterTypeDescription
hostNameStringThe host name.

Return Value

A newly created IPHostEntry-class instance.

See Also