ComponentSpace ICMP Class Library Reference

IcmpClient.EndReceive Method 

Completes the specified asynchronous receive operation.

[Visual Basic]
Public Function EndReceive( _
   ByVal asyncResult As IAsyncResult _
) As IcmpMessage
[C#]
public IcmpMessage 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 ICMP response message.

Remarks

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

Exceptions

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

See Also

IcmpClient Class | ComponentSpace.Icmp Namespace