System::Net::Dns::GetHostEntry methode

Dns::GetHostEntry(String) method

Maakt een nieuw IPHostEntry-klasse‑instance aan met de opgegeven tekenreeks die een hostnaam of IP‑adres bevat.

static System::SharedPtr<IPHostEntry> System::Net::Dns::GetHostEntry(String hostNameOrAddress)
ParameterTypeBeschrijving
hostNameOrAddressStringEen string die een hostnaam of IP-adres bevat.

ReturnValue

Een nieuw aangemaakt IPHostEntry-class‑object.

Zie ook

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

Maakt een nieuw IPHostEntry-class‑instance aan met het opgegeven IP-adres.

static System::SharedPtr<IPHostEntry> System::Net::Dns::GetHostEntry(System::SharedPtr<IPAddress> address)
ParameterTypeBeschrijving
adresSystem::SharedPtr<IPAddress>Het IP-adres.

ReturnValue

Een nieuw aangemaakt IPHostEntry-class‑object.

Zie ook