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)
Syntax
'Declaration
Public Function Verify ( _
option As VerifyOption _
) As Boolean
'Usage
Dim instance As SqlCeEngine
Dim option As VerifyOption
Dim returnValue As Boolean
returnValue = instance.Verify(option)
public bool Verify(
VerifyOption option
)
public:
bool Verify(
VerifyOption option
)
member Verify :
option:VerifyOption -> bool
public function Verify(
option : VerifyOption
) : boolean
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.
Remarks
If this method returns false, the database is corrupt, and your application must call the Repair method to correct the problem.
Note
False is also returned if there is a failure connecting to the database. Scenarios include an incorrect password, or the database file is inaccessible.