Socket.CancelConnectAsync Method

Cancels an outstanding asynchronous socket operation for a remote host connection.

Namespace:  System.Net.Sockets
Assembly:  System.Net (in System.Net.dll)

public static void CancelConnectAsync(
	SocketAsyncEventArgs e
)

Parameters

e
Type: System.Net.Sockets.SocketAsyncEventArgs
The System.Net.Sockets.SocketAsyncEventArgs object for the asynchronous socket operation that should be canceled.

ExceptionCondition
ArgumentNullException

The e parameter is null.

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

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show: