The maximum number of locked objects supported by the Berkeley DB environment.

Namespace:  BerkeleyDB
Assembly:  libdb_dotnet52 (in libdb_dotnet52.dll) Version:


public uint MaxObjects { get; set; }
Visual Basic (Declaration)
Public Property MaxObjects As UInteger
Visual C++
property unsigned int MaxObjects {
	unsigned int get ();
	void set (unsigned int value);


This value is used by Open(String, DatabaseEnvironmentConfig) to estimate how much space to allocate for various lock-table data structures. The default value is 1000 lockers. For specific information on configuring the size of the lock subsystem, see Configuring locking: sizing the system in the Programmer's Reference Guide.

If the database environment already exists when Open(String, DatabaseEnvironmentConfig) is called, the value of MaxObjects will be ignored.

See Also