ComponentSpace ICMP Class Library Reference

EchoClient.EndEcho Method 

Completes the specified asynchronous echo operation.

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

Parameters

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

Return Value

The echo reply message.

Remarks

When the EchoCompleted event is raised, EndEcho completes the operation that was initiated by the BeginEcho call.

Exceptions

Exception Type Condition
IcmpException Thrown when the echo fails.

See Also

EchoClient Class | ComponentSpace.Icmp Namespace