Set the maximum on-disk database file size used by the database. If this value is never set, the database's file size can grow without bound. If this value is set, then the heap file can never grow larger than the limit defined by this method. In that case, attempts to update or create records in a database that has reached its maximum size will throw a HeapFullException.Namespace: BerkeleyDB
Assembly: libdb_dotnet52 (in libdb_dotnet52.dll) Version: 22.214.171.124
|Visual Basic (Declaration)|
public: void MaxSize( unsigned int GBytes, unsigned int Bytes )
The size specified to this method must be at least three times the database page size. That is, the database must contain at least three database pages. You can set the database page size using PageSize. If this value is set for an existing database, the size specified here must match the size used to create the database. Note, however, that specifying an incorrect size will not result in an error until the database is opened.