SqlCeEngine.Verify Method (VerifyOption)

Verifies the integrity of the database based on the VerifyOption.

Namespace:  System.Data.SqlServerCe
Assembly:  System.Data.SqlServerCe (in System.Data.SqlServerCe.dll)

public bool Verify(
	VerifyOption option
)

Parameters

option
Type: System.Data.SqlServerCe.VerifyOption
Determines the level of database verification to use. For information about available option values, see VerifyOption.

Return Value

Type: System.Boolean
True if there is no database corruption; otherwise, false.

If this method returns false, the database is corrupt, and your application must call the Repair method to correct the problem.

NoteNote

False is also returned if there is a failure connecting to the database. Scenarios include an incorrect password, or the database file is inaccessible.

Show: