Dns.EndGetHostByName(IAsyncResult) Méthode

Définition

Attention

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

Attention

EndGetHostByName has been deprecated. Use EndGetHostEntry instead.

Attention

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

Achève une demande asynchrone d'informations DNS.

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);
[System.Obsolete("EndGetHostByName has been deprecated. Use EndGetHostEntry instead.")]
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);
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")>]
static member EndGetHostByName : IAsyncResult -> System.Net.IPHostEntry
[<System.Obsolete("EndGetHostByName has been deprecated. Use EndGetHostEntry instead.")>]
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
static member EndGetHostByName : IAsyncResult -> System.Net.IPHostEntry
Public Shared Function EndGetHostByName (asyncResult As IAsyncResult) As IPHostEntry

Paramètres

asyncResult
IAsyncResult

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

Retours

Objet IPHostEntry contenant les informations DNS relatives à 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 manière synchrone, utilisez la GetHostByName méthode .

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

Notes

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

S’applique à

Voir aussi