[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)
Operates just like
Db4objects.Db4o.Db4oFactory.OpenFile
, but uses
the global db4o
Configuration
context.
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 ( _ databaseFileName As String _ ) As IObjectContainer |
C# |
---|
public static IObjectContainer OpenFile ( string databaseFileName ) |
Visual C++ |
---|
public: static IObjectContainer^ OpenFile ( String^ databaseFileName ) |
Parameters
- databaseFileName
- System.String
an absolute or relative path to the database file