Ends a pending asynchronous lookup of the IP address(es) for a host

Namespace:  JHSoftware
Assembly:  JHSoftware.DnsClient (in JHSoftware.DnsClient.dll) Version: 1.0.1.0 (1.0.1.0)

Syntax

C#
public static IPAddress[] EndLookupHost(
	IAsyncResult asyncResult
)
Visual Basic (Declaration)
Public Shared Function EndLookupHost ( _
	asyncResult As IAsyncResult _
) As IPAddress()

Parameters

asyncResult
Type: System..::.IAsyncResult
An IAsyncResult that stores state information and any user defined data for this asynchronous operation.

Return Value

The host's IP address(es)

Exceptions

ExceptionCondition
JHSoftware..::.DnsClient..::.NXDomainExceptionThe requested domain name does not exist (DNS server returned RCode 3 NXDomain).
JHSoftware..::.DnsClient..::.NoDataExceptionThe requested domain name exists but has no records of the requested type.
JHSoftware..::.DnsClient..::.NoDefinitiveAnswerExceptionNone of the DNS servers returned a definitive answer.

See Also