Dns.EndGetHostByName(IAsyncResult) Methode

Definition

Achtung

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

Achtung

EndGetHostByName has been deprecated. Use EndGetHostEntry instead.

Achtung

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

Beendet eine asynchrone Anforderung für DNS-Informationen.

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

Parameter

asyncResult
IAsyncResult

Eine durch einen Aufruf der BeginGetHostByName(String, AsyncCallback, Object)-Methode zurückgegebene IAsyncResult-Instanz.

Gibt zurück

Ein IPHostEntry-Objekt, das DNS-Informationen zu einem Host enthält.

Attribute

Ausnahmen

asyncResult ist null.

Hinweise

Diese Methode blockiert, bis der Vorgang abgeschlossen ist.

Verwenden Sie die GetHostByName -Methode, um diesen Vorgang synchron auszuführen.

Wenn die Ipv6Element.Enabled -Eigenschaft auf truefestgelegt ist, wird die Aliases -Eigenschaft des IPHostEntry zurückgegebenen instance nicht von dieser Methode aufgefüllt und ist immer leer.

Hinweis

Dieses Mitglied gibt Ablaufverfolgungsinformationen aus, wenn Sie die Netzwerkablaufverfolgung in Ihrer Anwendung aktivieren. Weitere Informationen finden Sie unter Netzwerkablaufverfolgung im .NET Framework.

Gilt für:

Weitere Informationen