Socket.CancelConnectAsync(SocketAsyncEventArgs) Socket.CancelConnectAsync(SocketAsyncEventArgs) Socket.CancelConnectAsync(SocketAsyncEventArgs) Socket.CancelConnectAsync(SocketAsyncEventArgs) Method

Definition

Cancels an asynchronous request for a remote host connection.

public:
 static void CancelConnectAsync(System::Net::Sockets::SocketAsyncEventArgs ^ e);
public static void CancelConnectAsync (System.Net.Sockets.SocketAsyncEventArgs e);
static member CancelConnectAsync : System.Net.Sockets.SocketAsyncEventArgs -> unit
Public Shared Sub CancelConnectAsync (e As SocketAsyncEventArgs)
Parameters
Exceptions

An error occurred when attempting to access the socket.

A caller higher in the call stack does not have permission for the requested operation.

Remarks

The CancelConnectAsync method cancels an asynchronous request for a remote host connection.

Applies to