Specifies the type of SSL connection.
ConnectionType can take the following SSLSocket class constants:
|SSLv2||SSL (Secure Sockets Layer) version 2.|
|SSLv23||SSL version 3, but can roll back to 2 if needed.|
|SSLv3||SSL version 3.|
|TLSv1||TLS (Transport Layer Security) version 1.|
The default is SSL version 23. Once you have called the SSLSocket.Connect method, you cannot change the connection type without calling SSLSocket.Close first, but you can always query the connection type. If you are unsure whether the server supports SSLv23, you can try connecting multiple times. If an attempt results in a 102 error, try again with a different value for ConnectionType.
This example changes the connection type to SSLv3.