public static UniSession OpenSecureSession (string hostname, string userid, string password, string account, string service, X509Certificate clientcertificate)

This method returns a new UniSession object, which opens a connection to the UniData or UniVerse database.

string hostname is the name or network address of the instance of the UniData or UniVerse database to which to connect.

string userid is the user’s login name on the UniData or UniVerse database.

string password is the user’s password on the UniData or UniVerse database.

string account is the name of the UniData or UniVerse database account.

string service is the type of UniData or UniVerse database account: udvs for UniData or uvcs for UniVerse.

X509Certicate clientcertificate is the client certificate in case the server requires client authentication. If the server does not require client authentication, set this value to null. The X509Certificate is a Microsoft .NET framework class. For information about this class, see http://msdn.microsoft.com/enus/library/system.security.cryptography.x509certificates.x509certificate.aspx