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

protects the database file with a password.

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

Syntax

Visual Basic (Declaration)
Sub Password ( _
	pass As String _
)
C#
void Password (
	string pass
)
Visual C++
void Password (
	String^ pass
)

Parameters

pass
System.String
the password to be used.

Remarks

protects the database file with a password.

To set a password for a database file, this method needs to be called before a database file is created with the first Db4o.openFile() .

All further attempts to open the file, are required to set the same password.

The password is used to seed the encryption mechanism, which makes it impossible to read the database file without knowing the password.