SocketAsyncEventArgs.SocketError SocketAsyncEventArgs.SocketError SocketAsyncEventArgs.SocketError SocketAsyncEventArgs.SocketError Property

定义

获取或设置异步套接字操作的结果。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

属性值

一个 SocketError,表示异步套接字操作的结果。A SocketError that represents the result of the asynchronous socket operation.

注解

此属性提供了异步套接字操作的完成状态。This property provides the completion status of an asynchronous socket operation. 值为SocketError.Success指示操作成功完成。A value of SocketError.Success indicates successful completion of an operation. 此属性主要用于在应用程序的事件处理程序例程。This property is primarily used in an application's event handler routine.

此属性适用于所有的异步套接字 (xxxAsync) 方法。This property is used with all of the asynchronous socket (xxxAsync) methods.

适用于

另请参阅