## Dns::Resolve method


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

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


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| hostName | String | 用于创建 [IPHostEntry](../../iphostentry/) 类新实例的主机名。 |

### ReturnValue

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

## 另见

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