System.Net.Sockets.UdpClient.EndSend Method

Ends a pending asynchronous send.

Syntax

public int EndSend (IAsyncResult asyncResult)

Parameters

asyncResult
An IAsyncResult object returned by a call to erload:System.Net.Sockets.UdpClient.BeginSend.

Returns

If successful, the number of bytes sent to the System.Net.Sockets.UdpClient.

Remarks

This method blocks until the operation is complete.

To perform this operation synchronously, use the erload:System.Net.Sockets.UdpClient.Send method.

Requirements

Namespace: System.Net.Sockets
Assembly: System (in System.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0