## Dns::GetHostByName method


RTTI 信息。

```cpp
static System::SharedPtr<IPHostEntry> System::Net::Dns::GetHostByName(String hostName)
```


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| hostName | String | 主机名。 |

### ReturnValue

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


使用指定的主机名创建一个新的 IPHostEntry-class 实例。
## 另见

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [IPHostEntry](../../iphostentry/)
* Class [String](../../../system/string/)
* Class [Dns](../)
* Namespace [System::Net](../../)
* Library [Aspose.Font for C++](../../../)
