GetHostEntry()

Dns::GetHostEntry(String) method

Creates a new IPHostEntry-class instance using the specified string that contains a host name or IP address.

static System::SharedPtr<IPHostEntry> System::Net::Dns::GetHostEntry(String hostNameOrAddress)

Arguments

ParameterTypeDescription
hostNameOrAddressStringA string that contains a hostname or IP address.

Return Value

A newly created IPHostEntry-class instance.

Dns::GetHostEntry(System::SharedPtr<IPAddress>) method

Creates a new IPHostEntry-class instance using the specified IP address.

static System::SharedPtr<IPHostEntry> System::Net::Dns::GetHostEntry(System::SharedPtr<IPAddress> address)

Arguments

ParameterTypeDescription
addressSystem::SharedPtr<IPAddress>The IP address.

Return Value

A newly created IPHostEntry-class instance.

See Also