Udostępnij za pośrednictwem


ContentResolver.BulkInsert(Uri, ContentValues[]) Method

Definition

Inserts multiple rows into a table at the given URL.

[Android.Runtime.Register("bulkInsert", "(Landroid/net/Uri;[Landroid/content/ContentValues;)I", "")]
public int BulkInsert (Android.Net.Uri url, Android.Content.ContentValues[] values);
[<Android.Runtime.Register("bulkInsert", "(Landroid/net/Uri;[Landroid/content/ContentValues;)I", "")>]
member this.BulkInsert : Android.Net.Uri * Android.Content.ContentValues[] -> int

Parameters

url
Uri

The URL of the table to insert into.

values
ContentValues[]

The initial values for the newly inserted rows. The key is the column name for the field. Passing null will create an empty row.

Returns

the number of newly created rows.

Attributes

Remarks

Inserts multiple rows into a table at the given URL.

This function make no guarantees about the atomicity of the insertions.

Java documentation for android.content.ContentResolver.bulkInsert(android.net.Uri, android.content.ContentValues[]).

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