SocketAsyncEventArgs.SocketError Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the result of the asynchronous socket operation.
public:
property System::Net::Sockets::SocketError SocketError { System::Net::Sockets::SocketError get(); void set(System::Net::Sockets::SocketError value); };
public System.Net.Sockets.SocketError SocketError { get; set; }
member this.SocketError : System.Net.Sockets.SocketError with get, set
Public Property SocketError As SocketError
Property Value
A SocketError that represents the result of the asynchronous socket operation.
Remarks
This property provides the completion status of an asynchronous socket operation. A value of SocketError.Success indicates successful completion of an operation. This property is primarily used in an application's event handler routine.
This property is used with all of the asynchronous socket (xxxAsync) methods.
Applies to
See also
- AcceptAsync(SocketAsyncEventArgs)
- ConnectAsync(SocketAsyncEventArgs)
- DisconnectAsync(SocketAsyncEventArgs)
- ReceiveAsync(SocketAsyncEventArgs)
- ReceiveFromAsync(SocketAsyncEventArgs)
- ReceiveMessageFromAsync(SocketAsyncEventArgs)
- SendAsync(SocketAsyncEventArgs)
- SendPacketsAsync(SocketAsyncEventArgs)
- SendToAsync(SocketAsyncEventArgs)
- SocketError