다음을 통해 공유


SQLiteOpenHelper Constructors

Definition

Overloads

SQLiteOpenHelper(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

SQLiteOpenHelper(Context, String, SQLiteDatabase+ICursorFactory, Int32)

Create a helper object to create, open, and/or manage a database.

SQLiteOpenHelper(Context, String, Int32, SQLiteDatabase+OpenParams)

Create a helper object to create, open, and/or manage a database.

SQLiteOpenHelper(Context, String, SQLiteDatabase+ICursorFactory, Int32, IDatabaseErrorHandler)

Create a helper object to create, open, and/or manage a database.

SQLiteOpenHelper(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

protected SQLiteOpenHelper (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Database.Sqlite.SQLiteOpenHelper : nativeint * Android.Runtime.JniHandleOwnership -> Android.Database.Sqlite.SQLiteOpenHelper

Parameters

javaReference
IntPtr

nativeint

A IntPtrcontaining a Java Native Interface (JNI) object reference.

transfer
JniHandleOwnership

A JniHandleOwnershipindicating how to handle javaReference

Remarks

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.

Applies to

SQLiteOpenHelper(Context, String, SQLiteDatabase+ICursorFactory, Int32)

Create a helper object to create, open, and/or manage a database.

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;Ljava/lang/String;Landroid/database/sqlite/SQLiteDatabase$CursorFactory;I)V", "")]
public SQLiteOpenHelper (Android.Content.Context? context, string? name, Android.Database.Sqlite.SQLiteDatabase.ICursorFactory? factory, int version);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;Ljava/lang/String;Landroid/database/sqlite/SQLiteDatabase$CursorFactory;I)V", "")>]
new Android.Database.Sqlite.SQLiteOpenHelper : Android.Content.Context * string * Android.Database.Sqlite.SQLiteDatabase.ICursorFactory * int -> Android.Database.Sqlite.SQLiteOpenHelper

Parameters

context
Context

to use for locating paths to the the database

name
String

of the database file, or null for an in-memory database

version
Int32

number of the database (starting at 1); if the database is older, #onUpgrade will be used to upgrade the database; if the database is newer, #onDowngrade will be used to downgrade the database

Attributes

Remarks

Java documentation for android.database.sqlite.SQLiteOpenHelper.SQLiteOpenHelper(android.content.Context, java.lang.String, int, android.database.sqlite.OpenParams).

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.

Applies to

SQLiteOpenHelper(Context, String, Int32, SQLiteDatabase+OpenParams)

Create a helper object to create, open, and/or manage a database.

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;Ljava/lang/String;ILandroid/database/sqlite/SQLiteDatabase$OpenParams;)V", "", ApiSince=28)]
public SQLiteOpenHelper (Android.Content.Context? context, string? name, int version, Android.Database.Sqlite.SQLiteDatabase.OpenParams openParams);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;Ljava/lang/String;ILandroid/database/sqlite/SQLiteDatabase$OpenParams;)V", "", ApiSince=28)>]
new Android.Database.Sqlite.SQLiteOpenHelper : Android.Content.Context * string * int * Android.Database.Sqlite.SQLiteDatabase.OpenParams -> Android.Database.Sqlite.SQLiteOpenHelper

Parameters

context
Context

to use for locating paths to the the database

name
String

of the database file, or null for an in-memory database

version
Int32

number of the database (starting at 1); if the database is older, #onUpgrade will be used to upgrade the database; if the database is newer, #onDowngrade will be used to downgrade the database

openParams
SQLiteDatabase.OpenParams

configuration parameters that are used for opening SQLiteDatabase. Please note that SQLiteDatabase#CREATE_IF_NECESSARY flag will always be set when the helper opens the database

Attributes

Remarks

Java documentation for android.database.sqlite.SQLiteOpenHelper.SQLiteOpenHelper(android.content.Context, java.lang.String, int, android.database.sqlite.OpenParams).

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.

Applies to

SQLiteOpenHelper(Context, String, SQLiteDatabase+ICursorFactory, Int32, IDatabaseErrorHandler)

Create a helper object to create, open, and/or manage a database.

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;Ljava/lang/String;Landroid/database/sqlite/SQLiteDatabase$CursorFactory;ILandroid/database/DatabaseErrorHandler;)V", "")]
public SQLiteOpenHelper (Android.Content.Context? context, string? name, Android.Database.Sqlite.SQLiteDatabase.ICursorFactory? factory, int version, Android.Database.IDatabaseErrorHandler? errorHandler);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;Ljava/lang/String;Landroid/database/sqlite/SQLiteDatabase$CursorFactory;ILandroid/database/DatabaseErrorHandler;)V", "")>]
new Android.Database.Sqlite.SQLiteOpenHelper : Android.Content.Context * string * Android.Database.Sqlite.SQLiteDatabase.ICursorFactory * int * Android.Database.IDatabaseErrorHandler -> Android.Database.Sqlite.SQLiteOpenHelper

Parameters

context
Context

to use for locating paths to the the database

name
String

of the database file, or null for an in-memory database

version
Int32

number of the database (starting at 1); if the database is older, #onUpgrade will be used to upgrade the database; if the database is newer, #onDowngrade will be used to downgrade the database

errorHandler
IDatabaseErrorHandler
Attributes

Remarks

Java documentation for android.database.sqlite.SQLiteOpenHelper.SQLiteOpenHelper(android.content.Context, java.lang.String, int, android.database.sqlite.OpenParams).

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.

Applies to