GetHostByAddress()

Dns::GetHostByAddress(String) method

Creates a new IPHostEntry-class instance using the specified string representation of an IP address.

static System::SharedPtr<IPHostEntry> System::Net::Dns::GetHostByAddress(String address)

Arguments

ParameterTypeDescription
addressStringThe string representation of an IP address.

Return Value

A newly created IPHostEntry-class instance.

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

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

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

Arguments

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

Return Value

A newly created IPHostEntry-class instance.

See Also