DatabaseUtils.CursorLongToContentValuesIfPresent 方法

定義

讀取游標欄位中的 Long 並寫入 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

參數

cursor
ICursor

讀取的游標

values
ContentValues

該把價值放進去ContentValues

column
String

值得一讀的專欄

屬性

備註

讀取游標欄位中的 Long 並寫入 ContentValues。 如果欄位不存在或其值為空,則不會對 ContentValues 有任何新增。

Java 文件 android.database.DatabaseUtils.cursorLongToContentValuesIfPresent(android.database.Cursor, android.content.ContentValues, java.lang.String)

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於