SocketAsyncOperation Enumeration

May 11, 2014

The type of asynchronous socket operation most recently performed with this object.

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

public enum SocketAsyncOperation

Member nameDescription
NoneNone of the socket operations.
AcceptA socket Accept operation.
ConnectA socket Connect operation.
ReceiveA socket Receive operation.
ReceiveFromA socket ReceiveFrom operation.
SendA socket Send operation.
SendToA socket SendTo operation.

This type describes the asynchronous socket operation that was most recently completed using a System.Net.Sockets.SocketAsyncEventArgs object. The value of the SocketAsyncEventArgs.LastOperation property is set to None until the System.Net.Sockets.SocketAsyncEventArgs instance is used to begin an asynchronous socket operation. The property will then be set to the type of asynchronous operation being performed. This type more easily facilitates using a single completion callback delegate for multiple kinds of asynchronous socket operations. This type is intended for use in the SocketAsyncCallback completion routine.

The SocketAsyncOperation type is used by the SocketAsyncEventArgs.LastOperation property.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

Show:
© 2014 Microsoft