Socket.CancelConnectAsync Method
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Cancels an outstanding asynchronous socket operation for a remote host connection.
Namespace: System.Net.Sockets
Assembly: System.Net (in System.Net.dll)
Syntax
'Declaration
Public Shared Sub CancelConnectAsync ( _
e As SocketAsyncEventArgs _
)
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.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | The e parameter is nulla null reference (Nothing in Visual Basic). |
Remarks
The CancelConnectAsync(SocketAsyncEventArgs) method cancels an asynchronous request for a remote host connection.
Version Information
Silverlight
Supported in: 5, 4, 3
Silverlight for Windows Phone
Supported in: Windows Phone OS 7.1
Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.