Dns.EndGetHostByName(IAsyncResult) Methode

Definitie

Let op

EndGetHostByName has been deprecated. Use EndGetHostEntry instead.

Let op

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

Let op

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

Hiermee wordt een asynchrone aanvraag voor DNS-gegevens beëindigd.

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. https://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. 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 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. https://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. 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

Parameters

asyncResult
IAsyncResult

Een IAsyncResult exemplaar dat wordt geretourneerd door een aanroep naar de BeginGetHostByName(String, AsyncCallback, Object) methode.

Retouren

Een IPHostEntry object dat DNS-gegevens over een host bevat.

Kenmerken

Uitzonderingen

asyncResult is null.

Opmerkingen

Deze methode blokkeert totdat de bewerking is voltooid.

Gebruik de GetHostByName methode om deze bewerking synchroon uit te voeren.

Als de Ipv6Element.Enabled eigenschap is ingesteld op true, wordt de Aliases eigenschap van het IPHostEntry geretourneerde exemplaar niet ingevuld door deze methode en is deze altijd leeg.

Note

Dit lid verzendt traceringsgegevens wanneer u netwerktracering inschakelt in uw toepassing. Zie Network Tracing in the .NET Framework voor meer informatie.

Van toepassing op

Zie ook