Socket.CancelConnectAsync Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Cancels an outstanding asynchronous socket operation for a remote host connection.
Assembly: System.Net (in System.Net.dll)
Parameters
- e
- Type: System.Net.Sockets.SocketAsyncEventArgs
The System.Net.Sockets.SocketAsyncEventArgs object for the asynchronous socket operation that should be canceled.
| Exception | Condition |
|---|---|
| ArgumentNullException | The e parameter is null. |
Show: