[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Assembly: Db4objects.Db4o (in Db4objects.Db4o.dll)
opens an
ObjectContainer
on the specified database file for local use.
A database file can only be opened once, subsequent attempts to open another ObjectContainer against the same file will result in a DatabaseFileLockedException .
Database files can only be accessed for readwrite access from one process (one Java VM) at one time. All versions except for db4o mobile edition use an internal mechanism to lock the database file for other processes.
Namespace: Db4objects.Db4o
A database file can only be opened once, subsequent attempts to open another ObjectContainer against the same file will result in a DatabaseFileLockedException .
Database files can only be accessed for readwrite access from one process (one Java VM) at one time. All versions except for db4o mobile edition use an internal mechanism to lock the database file for other processes.
Assembly: Db4objects.Db4o (in Db4objects.Db4o.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Shared Function OpenFile ( _ config As IConfiguration, _ databaseFileName As String _ ) As IObjectContainer |
C# |
---|
public static IObjectContainer OpenFile ( IConfiguration config, string databaseFileName ) |
Visual C++ |
---|
public: static IObjectContainer^ OpenFile ( IConfiguration^ config, String^ databaseFileName ) |
Parameters
- config
- Db4objects.Db4o.Config.IConfiguration
a custom Configuration instance to be obtained via Db4objects.Db4o.Db4oFactory.NewConfiguration
- databaseFileName
- System.String
an absolute or relative path to the database file