Verify the integrity of all databases in the file specified by file.

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


public static void Verify(
	string file,
	DatabaseConfig cfg,
	Database..::.VerifyOperation op
Visual Basic (Declaration)
Public Shared Sub Verify ( _
	file As String, _
	cfg As DatabaseConfig, _
	op As Database..::.VerifyOperation _
Visual C++
static void Verify(
	String^ file, 
	DatabaseConfig^ cfg, 
	Database..::.VerifyOperation op


Type: System..::.String
The physical file in which the databases to be verified are found.
Type: BerkeleyDB..::.DatabaseConfig
Configuration parameters for the databases to be verified.
Type: BerkeleyDB..::.Database..::.VerifyOperation
The extent of verification


Berkeley DB normally verifies that btree keys and duplicate items are correctly sorted, and hash keys are correctly hashed. If the file being verified contains multiple databases using differing sorting or hashing algorithms, some of them must necessarily fail database verification because only one sort order or hash function can be specified in cfg. To verify files with multiple databases having differing sorting orders or hashing functions, first perform verification of the file as a whole by using NO_ORDER_CHECK, and then individually verify the sort order and hashing function for each database in the file using ORDER_CHECK_ONLY.

See Also