DatabaseUtils.LongForQuery 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.
Overloads
LongForQuery(SQLiteDatabase, String, String[]) |
Utility method to run the query on the db and return the value in the first column of the first row. |
LongForQuery(SQLiteStatement, String[]) |
Utility method to run the pre-compiled query and return the value in the first column of the first row. |
LongForQuery(SQLiteDatabase, String, String[])
Utility method to run the query on the db and return the value in the first column of the first row.
[Android.Runtime.Register("longForQuery", "(Landroid/database/sqlite/SQLiteDatabase;Ljava/lang/String;[Ljava/lang/String;)J", "")]
public static long LongForQuery (Android.Database.Sqlite.SQLiteDatabase? db, string? query, string[]? selectionArgs);
[<Android.Runtime.Register("longForQuery", "(Landroid/database/sqlite/SQLiteDatabase;Ljava/lang/String;[Ljava/lang/String;)J", "")>]
static member LongForQuery : Android.Database.Sqlite.SQLiteDatabase * string * string[] -> int64
Parameters
- query
- String
- selectionArgs
- String[]
Returns
- Attributes
Remarks
Utility method to run the query on the db and return the value in the first column of the first row.
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
LongForQuery(SQLiteStatement, String[])
Utility method to run the pre-compiled query and return the value in the first column of the first row.
[Android.Runtime.Register("longForQuery", "(Landroid/database/sqlite/SQLiteStatement;[Ljava/lang/String;)J", "")]
public static long LongForQuery (Android.Database.Sqlite.SQLiteStatement? prog, string[]? selectionArgs);
[<Android.Runtime.Register("longForQuery", "(Landroid/database/sqlite/SQLiteStatement;[Ljava/lang/String;)J", "")>]
static member LongForQuery : Android.Database.Sqlite.SQLiteStatement * string[] -> int64
Parameters
- prog
- SQLiteStatement
- selectionArgs
- String[]
Returns
- Attributes
Remarks
Utility method to run the pre-compiled query and return the value in the first column of the first row.
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.