ContentResolver.BulkInsert(Uri, ContentValues[]) 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.
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.
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.