SQLiteDatabase.OpenParams.Builder.SetErrorHandler Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets DatabaseErrorHandler object to handle db corruption errors
[Android.Runtime.Register("setErrorHandler", "(Landroid/database/DatabaseErrorHandler;)Landroid/database/sqlite/SQLiteDatabase$OpenParams$Builder;", "", ApiSince=27)]
public Android.Database.Sqlite.SQLiteDatabase.OpenParams.Builder SetErrorHandler(Android.Database.IDatabaseErrorHandler? errorHandler);
[<Android.Runtime.Register("setErrorHandler", "(Landroid/database/DatabaseErrorHandler;)Landroid/database/sqlite/SQLiteDatabase$OpenParams$Builder;", "", ApiSince=27)>]
member this.SetErrorHandler : Android.Database.IDatabaseErrorHandler -> Android.Database.Sqlite.SQLiteDatabase.OpenParams.Builder
Parameters
- errorHandler
- IDatabaseErrorHandler
The handler for database corruption errors, or null to use the default handler when the database is opened.
Returns
This builder, so that further configuration calls can be chained.
- Attributes
Remarks
Sets DatabaseErrorHandler object to handle db corruption errors
Android reference for android.database.sqlite.SQLiteDatabase.OpenParams.Builder.setErrorHandler.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.