Connects the client to the specified port on the specified host.
| Exception Type | Condition |
|---|---|
| ArgumentNullException | The hostname parameter is a null reference (Nothing in Visual Basic). |
| ArgumentOutOfRangeException | port is less than MinPort -or- port is greater than MaxPort. |
| SocketException | An operating system error occurs while accessing the Socket. |
| ObjectDisposedException | The SecureSocket has been closed. |
| SecurityException | The security negotiation failed. |
SecureTcpClient Class | Org.Mentalis.Security.Ssl Namespace | SecureTcpClient.Connect Overload List