System::Net::Dns::GetHostEntry yöntemi

Dns::GetHostEntry(String) method

Belirtilen, bir ana bilgisayar adı veya IP adresi içeren dizeyi kullanarak yeni bir IPHostEntry sınıfı örneği oluşturur.

static System::SharedPtr<IPHostEntry> System::Net::Dns::GetHostEntry(String hostNameOrAddress)
ParametreTürAçıklama
hostNameOrAddressDizeBir ana bilgisayar adı veya IP adresi içeren dize.

ReturnValue

Yeni oluşturulmuş bir IPHostEntry-sınıfı örneği.

Ayrıca Bakınız

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

Belirtilen IP adresini kullanarak yeni bir IPHostEntry-class örneği oluşturur.

static System::SharedPtr<IPHostEntry> System::Net::Dns::GetHostEntry(System::SharedPtr<IPAddress> address)
ParametreTürAçıklama
adresSystem::SharedPtr<IPAddress>IP adresi.

ReturnValue

Yeni oluşturulmuş bir IPHostEntry-sınıfı örneği.

Ayrıca Bakınız