Initializes a ULConnection object with the specified connection string. The connection must be opened before you can perform any operations against the database.
Visual Basic Public Sub New( _ ByVal connectionString As String _ )
C# public ULConnection( string connectionString );
connectionString An UltraLite.NET connection string. A connection string is a semicolon-separated list of keyword-value pairs.
For a list of parameters, see ConnectionString property.
To use the UltraLite Engine runtime of UltraLite.NET, set ULDatabaseManager.RuntimeType to the appropriate value before using any other UltraLite.NET API.
The connection string can be supplied using a ULConnectionParms object.
The following code creates and opens a connection to the existing database \UltraLite\MyDatabase.udb on a Windows Mobile device.
' Visual Basic Dim openParms As ULConnectionParms = New ULConnectionParms openParms.DatabaseOnCE = "\UltraLite\MyDatabase.udb" Dim conn As ULConnection = _ New ULConnection( openParms.ToString() ) conn.Open() // C# ULConnectionParms openParms = new ULConnectionParms(); openParms.DatabaseOnCE = @"\UltraLite\MyDatabase.udb"; ULConnection conn = new ULConnection( openParms.ToString() ); conn.Open(); |
Send feedback about this page via email or DocCommentXchange | Copyright © 2008, iAnywhere Solutions, Inc. - SQL Anywhere 11.0.0 |