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

Dns::GetHostByAddress(String) method

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

static System::SharedPtr<IPHostEntry> System::Net::Dns::GetHostByAddress(String address)
参数类型描述
地址StringIP 地址的字符串表示。

ReturnValue

一个新创建的 IPHostEntry-class 实例。

另见

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

使用指定的 IP 地址,创建新的 IPHostEntry-class 实例。

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

ReturnValue

一个新创建的 IPHostEntry-class 实例。

另见