[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

turns readOnly mode on and off.

Namespace: Db4objects.Db4o.Config
Assembly:   Db4objects.Db4o (in Db4objects.Db4o.dll)

Syntax

Visual Basic (Declaration)
Sub ReadOnly ( _
	flag As Boolean _
)
C#
void ReadOnly (
	bool flag
)
Visual C++
void ReadOnly (
	bool flag
)

Parameters

flag
System.Boolean
 Copy imageCopy Code
true
for configuring readOnly mode for subsequent calls to Db4o.openFile() .

Remarks

turns readOnly mode on and off.

This method configures the mode in which subsequent calls to Db4o.openFile() will open files.

Readonly mode allows to open an unlimited number of reading processes on one database file. It is also convenient for deploying db4o database files on CD-ROM.

If mixed access using many readOnly and one readWrite session is used, there is no guarantee that the data in the readOnly sessions will be kept up-to-date.