ComponentSpace DNS Class Library Reference

DnsClient.EndReceive Method 

Completes the specified asynchronous receive operation.

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

Parameters

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

Return Value

The DNS response message.

Remarks

When the ReceiveCompleted event is raised, EndReceive completes the operation that was initiated by the BeginReceive call.

Exceptions

Exception Type Condition
DnsException Thrown when the message cannot be received.

See Also

DnsClient Class | ComponentSpace.Dns Namespace