SocketAsyncOperation Enumeration
The type of asynchronous socket operation most recently performed with this context object.
Assembly: System (in System.dll)
| Member name | Description | |
|---|---|---|
| Accept | A socket Accept operation. | |
| Connect | A socket Connect operation. | |
| Disconnect | A socket Disconnect operation. | |
| None | None of the socket operations. | |
| Receive | A socket Receive operation. | |
| ReceiveFrom | A socket ReceiveFrom operation. | |
| ReceiveMessageFrom | A socket ReceiveMessageFrom operation. | |
| Send | A socket Send operation. | |
| SendPackets | A socket SendPackets operation. | |
| SendTo | A 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.
Available since 10
.NET Framework
Available since 2.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.1
Socket::AcceptAsync
Socket::ConnectAsync
Socket::DisconnectAsync
Socket::ReceiveAsync
Socket::ReceiveFromAsync
Socket::ReceiveMessageFromAsync
Socket::SendAsync
Socket::SendPacketsAsync
Socket::SendToAsync
System.Net.Sockets::SocketAsyncEventArgs
SocketAsyncEventArgs::LastOperation
System.Net.Sockets Namespace