Ends a pending asynchronous connection request.

Namespace: Jscape.Util.Proxy
Assembly: Jscape.Ftp (in Jscape.Ftp.dll) Version: 2.4.5.0

Syntax

C#
public void EndConnect(
	IAsyncResult asyncResult
)
Visual Basic
Public Sub EndConnect ( _
	asyncResult As IAsyncResult _
)
Visual C++
public:
void EndConnect(
	IAsyncResult^ asyncResult
)

Parameters

asyncResult
Type: System..::..IAsyncResult
Stores state information for this asynchronous operation as well as any user-defined data.

Exceptions

ExceptionCondition
System..::..ArgumentNullExceptionThe asyncResult parameter is a null reference (Nothing in Visual Basic).
System..::..ArgumentExceptionThe asyncResult parameter was not returned by a call to the BeginConnect method.
System.Net.Sockets..::..SocketExceptionAn operating system error occurs while accessing the Socket.
System..::..ObjectDisposedExceptionThe Socket has been closed.
System..::..InvalidOperationExceptionEndConnect was previously called for the asynchronous connection.
Jscape.Util.Proxy..::..ProxyExceptionThe proxy server refused the connection.

See Also