Begins an asynchronous request to disconnect from a remote endpoint.
Public Function DisconnectAsync ( _ e As SocketAsyncEventArgs _ ) As Boolean
Dim instance As Socket Dim e As SocketAsyncEventArgs Dim returnValue As Boolean returnValue = instance.DisconnectAsync(e)
public bool DisconnectAsync( SocketAsyncEventArgs e )
public: bool DisconnectAsync( SocketAsyncEventArgs^ e )
public function DisconnectAsync( e : SocketAsyncEventArgs ) : boolean
The e parameter cannot be null.
A socket operation was already in progress using the System.Net.Sockets..::.SocketAsyncEventArgs object specified in the e parameter.
Windows XP or later is required for this method.
The Socket has been closed.
An error occurred when attempting to access the socket.
When using a connection-oriented protocol, calling the DisconnectAsync method requests a disconnect from a remote endpoint. If you set SocketAsyncEventArgs..::.DisconnectReuseSocket to true in the e parameter, the socket can be reused.
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003