Mentalis.org Security Library documentation

SecureSocket.EndConnect Method 

Ends a pending asynchronous connection request.

[Visual Basic]
Overrides Public Sub EndConnect( _
   ByVal asyncResult As IAsyncResult _
)
[C#]
public override void EndConnect(
   IAsyncResult asyncResult
);

Parameters

asyncResult
The result of the asynchronous operation.

Exceptions

Exception TypeCondition
ArgumentNullExceptionasyncResult is a null reference (Nothing in Visual Basic).
ArgumentExceptionasyncResult was not returned by a call to the BeginConnect method.
InvalidOperationExceptionEndConnect was previously called for the asynchronous connection.
SocketExceptionAn operating system error occurs while accessing the SecureSocket.
ObjectDisposedExceptionThe SecureSocket has been closed.
SecurityExceptionAn error occurred while negotiating the security protocol.

See Also

SecureSocket Class | SecureSocket Members | Org.Mentalis.Security.Ssl Namespace