Completed Event
Collapse the table of content
Expand the table of content

SocketAsyncEventArgs.Completed Event

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

An event that indicates an asynchronous operation is completed.

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

public event EventHandler<SocketAsyncEventArgs> Completed

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.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

Show:
© 2017 Microsoft