Udostępnij za pośrednictwem


DatabaseUtils.CursorLongToContentValuesIfPresent Method

Definition

Reads a Long out of a column in a Cursor and writes it to a ContentValues.

[Android.Runtime.Register("cursorLongToContentValuesIfPresent", "(Landroid/database/Cursor;Landroid/content/ContentValues;Ljava/lang/String;)V", "")]
public static void CursorLongToContentValuesIfPresent (Android.Database.ICursor? cursor, Android.Content.ContentValues? values, string? column);
[<Android.Runtime.Register("cursorLongToContentValuesIfPresent", "(Landroid/database/Cursor;Landroid/content/ContentValues;Ljava/lang/String;)V", "")>]
static member CursorLongToContentValuesIfPresent : Android.Database.ICursor * Android.Content.ContentValues * string -> unit

Parameters

cursor
ICursor

The cursor to read from

values
ContentValues

The ContentValues to put the value into

column
String

The column to read

Attributes

Remarks

Reads a Long out of a column in a Cursor and writes it to a ContentValues. Adds nothing to the ContentValues if the column isn't present or if its value is null.

Java documentation for android.database.DatabaseUtils.cursorLongToContentValuesIfPresent(android.database.Cursor, android.content.ContentValues, java.lang.String).

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