System::Net::Dns::GetHostByAddress 方法

Dns::GetHostByAddress(String) method

使用指定的 IP 地址字符串表示创建新的 IPHostEntry 类实例。

static System::SharedPtr<IPHostEntry> System::Net::Dns::GetHostByAddress(String address)
ParameterType描述
地址字符串IP 地址的字符串表示形式。

ReturnValue

新创建的 IPHostEntry-class 实例。

另见

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

使用指定的 IP 地址创建新的 IPHostEntry 类实例。

static System::SharedPtr<IPHostEntry> System::Net::Dns::GetHostByAddress(System::SharedPtr<IPAddress> address)
ParameterType描述
地址System::SharedPtr<IPAddress>IP 地址。

ReturnValue

新创建的 IPHostEntry-class 实例。

另见