Android.Database.DatabaseUtils.CursorStringToContentValuesIfPresent Method
Reads a String out of a column in a Cursor and writes it to a ContentValues.

Syntax

[Android.Runtime.Register("cursorStringToContentValuesIfPresent", "(Landroid/database/Cursor;Landroid/content/ContentValues;Ljava/lang/String;)V", "")]
public static void CursorStringToContentValuesIfPresent (ICursor cursor, Android.Content.ContentValues values, string column)

Parameters

cursor
The cursor to read from
values
The Android.Content.ContentValues to put the value into
column
The column to read

Remarks

Reads a String 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.

[Android Documentation]

Requirements

Namespace: Android.Database
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 8