SocketAsyncEventArgs.Completed Event

Microsoft Silverlight will reach end of support after October 2021. Learn more.

An event that indicates an asynchronous operation is completed.

Namespace:  System.Net.Sockets
Assembly:  System.Net (in System.Net.dll)

Syntax

'Declaration
Public Event Completed As EventHandler(Of SocketAsyncEventArgs)
public event EventHandler<SocketAsyncEventArgs> Completed

Remarks

The Completed event provides a way for client applications to complete an asynchronous socket operation. An event handler must be attached to the event within a SocketAsyncEventArgs instance when an asynchronous socket operation is initiated. The completion callback delegates referenced by the Completed event contains program logic to finish processing the asynchronous socket operation for the client.

When the event is signaled, the application uses the SocketAsyncEventArgs object parameter to obtain the status of the completed asynchronous socket operation.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.