VistaDB 5






The database file name or connection string.
CreateConnection Method (VistaDBConnectionFactory)
Creates a connection for VistaDB based on the given database file name or connection string. If the given string contains an '=' character then it is treated as a full connection string, otherwise it is treated as a database file name only.
Syntax
'Declaration
 
Public Function CreateConnection( _
   ByVal nameOrConnectionString As System.String _
) As System.Data.Common.DbConnection
'Usage
 
Dim instance As VistaDBConnectionFactory
Dim nameOrConnectionString As System.String
Dim value As System.Data.Common.DbConnection
 
value = instance.CreateConnection(nameOrConnectionString)
public System.Data.Common.DbConnection CreateConnection( 
   System.string nameOrConnectionString
)
public function CreateConnection( 
    nameOrConnectionString: System.String
): System.Data.Common.DbConnection; 
public function CreateConnection( 
   nameOrConnectionString : System.String
) : System.Data.Common.DbConnection;
public: System.Data.Common.DbConnection* CreateConnection( 
   System.string* nameOrConnectionString
) 
public:
System.Data.Common.DbConnection^ CreateConnection( 
   System.String^ nameOrConnectionString
) 

Parameters

nameOrConnectionString
The database file name or connection string.

Return Value

An initialized DbConnection.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also