Export (0) Print
Expand All

Dns.EndGetHostByName Method

Ends an asynchronous request for DNS information.

[Visual Basic]
Public Shared Function EndGetHostByName( _
   ByVal asyncResult As IAsyncResult _
) As IPHostEntry
[C#]
public static IPHostEntry EndGetHostByName(
 IAsyncResult asyncResult
);
[C++]
public: static IPHostEntry* EndGetHostByName(
 IAsyncResult* asyncResult
);
[JScript]
public static function EndGetHostByName(
   asyncResult : IAsyncResult
) : IPHostEntry;

Parameters

asyncResult
The pending request for DNS information.

Return Value

An IPHostEntry object containin DNS information about a host.

Exceptions

Exception Type Condition
ArgumentNullException asyncResult is a null reference (Nothing in Visual Basic).

Remarks

The EndGetHostByName method completes an asynchronous request for DNS information that was started with a call to BeginGetHostByName.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework, Common Language Infrastructure (CLI) Standard

See Also

Dns Class | Dns Members | System.Net Namespace | Including Asynchronous Calls

Show:
© 2014 Microsoft