Sdílet prostřednictvím


ContentProvider.ApplyBatch Method

Definition

Overloads

ApplyBatch(IList<ContentProviderOperation>)

Override this to handle requests to perform a batch of operations, or the default implementation will iterate over the operations and call ContentProviderOperation#apply on each of them.

ApplyBatch(String, IList<ContentProviderOperation>)

Override this to handle requests to perform a batch of operations, or the default implementation will iterate over the operations and call ContentProviderOperation#apply on each of them.

ApplyBatch(IList<ContentProviderOperation>)

Override this to handle requests to perform a batch of operations, or the default implementation will iterate over the operations and call ContentProviderOperation#apply on each of them.

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

Parameters

operations
IList<ContentProviderOperation>

the operations to apply

Returns

the results of the applications

Attributes

Remarks

Java documentation for android.content.ContentProvider.applyBatch(java.lang.String, java.util.ArrayList).

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

ApplyBatch(String, IList<ContentProviderOperation>)

Override this to handle requests to perform a batch of operations, or the default implementation will iterate over the operations and call ContentProviderOperation#apply on each of them.

[Android.Runtime.Register("applyBatch", "(Ljava/lang/String;Ljava/util/ArrayList;)[Landroid/content/ContentProviderResult;", "GetApplyBatch_Ljava_lang_String_Ljava_util_ArrayList_Handler", ApiSince=29)]
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", ApiSince=29)>]
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
operations
IList<ContentProviderOperation>

the operations to apply

Returns

the results of the applications

Attributes

Remarks

Override this to handle requests to perform a batch of operations, or the default implementation will iterate over the operations and call ContentProviderOperation#apply on each of them. If all calls to ContentProviderOperation#apply succeed then a ContentProviderResult array with as many elements as there were operations will be returned. If any of the calls fail, it is up to the implementation how many of the others take effect. This method can be called from multiple threads, as described in Processes and Threads.

Java documentation for android.content.ContentProvider.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