ComponentSpace DNS Class Library Reference

DnsClient.EndLookup Method 

Completes the specified asynchronous lookup operation.

[Visual Basic]
Public Function EndLookup( _
   ByVal asyncResult As IAsyncResult _
) As IPAddress()
[C#]
public IPAddress[] EndLookup(
   IAsyncResult asyncResult
);

Parameters

asyncResult
The IAsyncResult that identifies the asynchronous lookup operation to finish, and from which to retrieve an end result.

Return Value

The resolved IP addresses.

Remarks

When the LookupCompleted event is raised, EndLookup completes the operation that was initiated by the BeginLookup call.

Exceptions

Exception Type Condition
DnsLookupException Thrown when the lookup fails.

See Also

DnsClient Class | ComponentSpace.Dns Namespace