Click or drag to resize

ProxySocketEndConnect Method

Ends a pending asynchronous connection request.

Namespace: mtapi.mt5
Assembly: mt5api (in mt5api.dll) Version: 5.3677.1.2
Syntax
public void EndConnect(
	IAsyncResult asyncResult
)

Parameters

asyncResult  IAsyncResult
Stores state information for this asynchronous operation as well as any user-defined data.
Exceptions
ExceptionCondition
ArgumentNullExceptionThe asyncResult parameter is a null reference (Nothing in Visual Basic).
ArgumentExceptionThe asyncResult parameter was not returned by a call to the BeginConnect method.
SocketExceptionAn operating system error occurs while accessing the Socket.
ObjectDisposedExceptionThe Socket has been closed.
InvalidOperationExceptionEndConnect was previously called for the asynchronous connection.
ProxyExceptionThe proxy server refused the connection.
See Also