System::Net::Dns::GetHostEntry メソッド

Dns::GetHostEntry(String) method

指定されたホスト名またはIPアドレスを含む文字列を使用して、新しい IPHostEntry-class インスタンスを作成します。

static System::SharedPtr<IPHostEntry> System::Net::Dns::GetHostEntry(String hostNameOrAddress)
パラメーター説明
hostNameOrAddressStringホスト名またはIPアドレスを含む文字列です。

ReturnValue

新しく作成された IPHostEntry-class インスタンスです。

参照

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

指定されたIPアドレスを使用して、新しい IPHostEntry-class インスタンスを作成します。

static System::SharedPtr<IPHostEntry> System::Net::Dns::GetHostEntry(System::SharedPtr<IPAddress> address)
パラメーター説明
アドレスSystem::SharedPtr<IPAddress>IPアドレスです。

ReturnValue

新しく作成された IPHostEntry-class インスタンスです。

参照