Verify Method (String, String, DatabaseConfig, Database.VerifyOperation)

Collapse All Expand All Code: All Code: Multiple Code: C# Code: Visual Basic Code: Visual C++

C#
Visual Basic
Visual C++

Berkeley DB .NET API Documentation
Database..::.Verify Method (String, String, DatabaseConfig, Database..::.VerifyOperation)
Database Class See Also

Verify the integrity of the database specified by file and database.

Namespace: BerkeleyDB
Assembly: libdb_dotnet48 (in libdb_dotnet48.dll) Version: 4.8.24.0

# Syntax

C#
    public static void Verify(
    	string file,
    	string database,
    	DatabaseConfig cfg,
    	Database..::.VerifyOperation op
    )

Visual Basic (Declaration)
    Public Shared Sub Verify ( _
    	file As String, _
    	database As String, _
    	cfg As DatabaseConfig, _
    	op As Database..::.VerifyOperation _
    )

Visual C++
    public:
    static void Verify(
    	String^ file,
    	String^ database,
    	DatabaseConfig^ cfg,
    	Database..::.VerifyOperation op
    )

#### Parameters

file
  Type: System..::.String
  The physical file in which the databases to be verified are found.

database
  Type: System..::.String
  The database in file on which the database checks for btree and duplicate sort order and for hashing are to be performed. A non-null value for database is only allowed with ORDER_CHECK_ONLY.

cfg
  Type: BerkeleyDB..::.DatabaseConfig
  Configuration parameters for the databases to be verified.

op
  Type: BerkeleyDB..::.Database..::.VerifyOperation
  The extent of verification

# Remarks

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

Database Class
Verify Overload
BerkeleyDB Namespace