Add Encryption=ssl; TrustedFile=<trusted file> to the ConnectionString property to enable SSL for the Data Provider.
AseConnection then negotiates an SSL connection with the Adaptive Server.
AseConnection.ConnectionString= "Data Source=MANGO;" + "Port = 5000;" + "Database=pubs2;" + "UID=sa;" + "PWD=sapass;" + "Encryption=ssl;" + "TrustedFile='c:\sybase\ini\trusted.txt';";