Dns.EndGetHostByName(IAsyncResult) Méthode

Définition

Attention

EndGetHostByName is obsoleted for this type, please use EndGetHostEntry instead. http://go.microsoft.com/fwlink/?linkid=14202

Attention

EndGetHostByName is obsoleted for this type, please use EndGetHostEntry instead. https://go.microsoft.com/fwlink/?linkid=14202

Termine une requête asynchrone pour les informations DNS.

public:
 static System::Net::IPHostEntry ^ EndGetHostByName(IAsyncResult ^ asyncResult);
public static System.Net.IPHostEntry EndGetHostByName(IAsyncResult asyncResult);
[System.Obsolete("EndGetHostByName is obsoleted for this type, please use EndGetHostEntry instead. http://go.microsoft.com/fwlink/?linkid=14202")]
public static System.Net.IPHostEntry EndGetHostByName(IAsyncResult asyncResult);
[System.Obsolete("EndGetHostByName is obsoleted for this type, please use EndGetHostEntry instead. https://go.microsoft.com/fwlink/?linkid=14202")]
public static System.Net.IPHostEntry EndGetHostByName(IAsyncResult asyncResult);
static member EndGetHostByName : IAsyncResult -> System.Net.IPHostEntry
[<System.Obsolete("EndGetHostByName is obsoleted for this type, please use EndGetHostEntry instead. http://go.microsoft.com/fwlink/?linkid=14202")>]
static member EndGetHostByName : IAsyncResult -> System.Net.IPHostEntry
[<System.Obsolete("EndGetHostByName is obsoleted for this type, please use EndGetHostEntry instead. https://go.microsoft.com/fwlink/?linkid=14202")>]
static member EndGetHostByName : IAsyncResult -> System.Net.IPHostEntry
Public Shared Function EndGetHostByName (asyncResult As IAsyncResult) As IPHostEntry

Paramètres

asyncResult
IAsyncResult

Instance IAsyncResult retournée par un appel à la BeginGetHostByName(String, AsyncCallback, Object) méthode.

Retours

Objet IPHostEntry qui contient des informations DNS sur un hôte.

Attributs

Exceptions

asyncResult a la valeur null.

Remarques

Cette méthode se bloque jusqu’à ce que l’opération soit terminée.

Pour effectuer cette opération de façon synchrone, utilisez la GetHostByName méthode.

Si la Ipv6Element.Enabled propriété est définie truesur , la Aliases propriété de l’instance IPHostEntry retournée n’est pas remplie par cette méthode et sera toujours vide.

Note

Ce membre émet des informations de trace lorsque vous activez le suivi réseau dans votre application. Pour plus d’informations, consultez Network Tracing in the .NET Framework.

S’applique à

Voir aussi