次の方法で共有


ContentResolver.ApplyBatch Method

Definition

Applies each of the ContentProviderOperation objects and returns an array of their results.

[Android.Runtime.Register("applyBatch", "(Ljava/lang/String;Ljava/util/ArrayList;)[Landroid/content/ContentProviderResult;", "GetApplyBatch_Ljava_lang_String_Ljava_util_ArrayList_Handler")]
public virtual Android.Content.ContentProviderResult[] ApplyBatch (string authority, System.Collections.Generic.IList<Android.Content.ContentProviderOperation> operations);
[<Android.Runtime.Register("applyBatch", "(Ljava/lang/String;Ljava/util/ArrayList;)[Landroid/content/ContentProviderResult;", "GetApplyBatch_Ljava_lang_String_Ljava_util_ArrayList_Handler")>]
abstract member ApplyBatch : string * System.Collections.Generic.IList<Android.Content.ContentProviderOperation> -> Android.Content.ContentProviderResult[]
override this.ApplyBatch : string * System.Collections.Generic.IList<Android.Content.ContentProviderOperation> -> Android.Content.ContentProviderResult[]

Parameters

authority
String

the authority of the ContentProvider to which this batch should be applied

operations
IList<ContentProviderOperation>

the operations to apply

Returns

the results of the applications

Attributes

Remarks

Applies each of the ContentProviderOperation objects and returns an array of their results. Passes through OperationApplicationException, which may be thrown by the call to ContentProviderOperation#apply. If all the applications succeed then a ContentProviderResult array with the same number of elements as the operations will be returned. It is implementation-specific how many, if any, operations will have been successfully applied if a call to apply results in a OperationApplicationException.

Java documentation for android.content.ContentResolver.applyBatch(java.lang.String, java.util.ArrayList<android.content.ContentProviderOperation>).

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