Share via


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

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 is already opened in exclusive mode by another application.

See Also

Reference

SqlCeEngine Class

SqlCeEngine Members

Verify Overload

System.Data.SqlServerCe Namespace