Condividi tramite


SQLiteDatabase.OpenOrCreateDatabase Method

Definition

Overloads

OpenOrCreateDatabase(File, SQLiteDatabase+ICursorFactory)

Equivalent to openDatabase(file.

OpenOrCreateDatabase(String, SQLiteDatabase+ICursorFactory)

Equivalent to openDatabase(file.

OpenOrCreateDatabase(String, SQLiteDatabase+ICursorFactory, IDatabaseErrorHandler)

Equivalent to openDatabase(file.

OpenOrCreateDatabase(File, SQLiteDatabase+ICursorFactory)

Equivalent to openDatabase(file.

[Android.Runtime.Register("openOrCreateDatabase", "(Ljava/io/File;Landroid/database/sqlite/SQLiteDatabase$CursorFactory;)Landroid/database/sqlite/SQLiteDatabase;", "")]
public static Android.Database.Sqlite.SQLiteDatabase? OpenOrCreateDatabase (Java.IO.File file, Android.Database.Sqlite.SQLiteDatabase.ICursorFactory? factory);
[<Android.Runtime.Register("openOrCreateDatabase", "(Ljava/io/File;Landroid/database/sqlite/SQLiteDatabase$CursorFactory;)Landroid/database/sqlite/SQLiteDatabase;", "")>]
static member OpenOrCreateDatabase : Java.IO.File * Android.Database.Sqlite.SQLiteDatabase.ICursorFactory -> Android.Database.Sqlite.SQLiteDatabase

Parameters

file
File

Returns

Attributes

Remarks

Java documentation for android.database.sqlite.SQLiteDatabase.openOrCreateDatabase(java.io.File, android.database.sqlite.CursorFactory).

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

OpenOrCreateDatabase(String, SQLiteDatabase+ICursorFactory)

Equivalent to openDatabase(file.

[Android.Runtime.Register("openOrCreateDatabase", "(Ljava/lang/String;Landroid/database/sqlite/SQLiteDatabase$CursorFactory;)Landroid/database/sqlite/SQLiteDatabase;", "")]
public static Android.Database.Sqlite.SQLiteDatabase? OpenOrCreateDatabase (string path, Android.Database.Sqlite.SQLiteDatabase.ICursorFactory? factory);
[<Android.Runtime.Register("openOrCreateDatabase", "(Ljava/lang/String;Landroid/database/sqlite/SQLiteDatabase$CursorFactory;)Landroid/database/sqlite/SQLiteDatabase;", "")>]
static member OpenOrCreateDatabase : string * Android.Database.Sqlite.SQLiteDatabase.ICursorFactory -> Android.Database.Sqlite.SQLiteDatabase

Parameters

path
String

Returns

Attributes

Remarks

Java documentation for android.database.sqlite.SQLiteDatabase.openOrCreateDatabase(java.io.File, android.database.sqlite.CursorFactory).

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

OpenOrCreateDatabase(String, SQLiteDatabase+ICursorFactory, IDatabaseErrorHandler)

Equivalent to openDatabase(file.

[Android.Runtime.Register("openOrCreateDatabase", "(Ljava/lang/String;Landroid/database/sqlite/SQLiteDatabase$CursorFactory;Landroid/database/DatabaseErrorHandler;)Landroid/database/sqlite/SQLiteDatabase;", "")]
public static Android.Database.Sqlite.SQLiteDatabase? OpenOrCreateDatabase (string path, Android.Database.Sqlite.SQLiteDatabase.ICursorFactory? factory, Android.Database.IDatabaseErrorHandler? errorHandler);
[<Android.Runtime.Register("openOrCreateDatabase", "(Ljava/lang/String;Landroid/database/sqlite/SQLiteDatabase$CursorFactory;Landroid/database/DatabaseErrorHandler;)Landroid/database/sqlite/SQLiteDatabase;", "")>]
static member OpenOrCreateDatabase : string * Android.Database.Sqlite.SQLiteDatabase.ICursorFactory * Android.Database.IDatabaseErrorHandler -> Android.Database.Sqlite.SQLiteDatabase

Parameters

path
String
errorHandler
IDatabaseErrorHandler

Returns

Attributes

Remarks

Java documentation for android.database.sqlite.SQLiteDatabase.openOrCreateDatabase(java.io.File, android.database.sqlite.CursorFactory).

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