Ends a pending asynchronous lookup for a domain name and DNS record type.

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

Syntax

C#
public static DnsClient..::.Response EndLookup(
	IAsyncResult asyncResult
)
Visual Basic (Declaration)
Public Shared Function EndLookup ( _
	asyncResult As IAsyncResult _
) As DnsClient..::.Response

Parameters

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

Return Value

A Response object containing DNS response records and properties.

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