## Dns::GetHostAddresses method


返回指定主机名或 IP 地址的 IP 地址集合。

```cpp
static System::ArrayPtr<System::SharedPtr<IPAddress>> System::Net::Dns::GetHostAddresses(String hostNameOrAddress)
```


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| hostNameOrAddress | String | 包含主机名或 IP 地址的字符串。 |

### ReturnValue

IP 地址的集合。

## 另见

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