## Dns::GetHostEntry(String) method


Erstellt eine neue IPHostEntry-class-Instanz mithilfe des angegebenen Strings, der einen Hostnamen oder eine IP-Adresse enthält.

```cpp
static System::SharedPtr<IPHostEntry> System::Net::Dns::GetHostEntry(String hostNameOrAddress)
```


| Parameter | Typ | Beschreibung |
| --- | --- | --- |
| hostNameOrAddress | String | Ein String, der einen Hostnamen oder eine IP-Adresse enthält. |

### ReturnValue

Eine neu erstellte Instanz der IPHostEntry-Klasse.

## Siehe auch

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [IPHostEntry](../../iphostentry/)
* Class [String](../../../system/string/)
* Class [Dns](../)
* Namespace [System::Net](../../)
* Library [Aspose.Font for C++](../../../)
## Dns::GetHostEntry(System::SharedPtr\<IPAddress\>) method


Erstellt eine neue IPHostEntry-class-Instanz mit der angegebenen IP-Adresse.

```cpp
static System::SharedPtr<IPHostEntry> System::Net::Dns::GetHostEntry(System::SharedPtr<IPAddress> address)
```


| Parameter | Typ | Beschreibung |
| --- | --- | --- |
| address | System::SharedPtr\<IPAddress\> | Die IP-Adresse. |

### ReturnValue

Eine neu erstellte Instanz der IPHostEntry-Klasse.

## Siehe auch

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