语言

ContentProvider.ApplyBatch 方法

定义

重载

名称 说明
ApplyBatch(IList<ContentProviderOperation>)

重写此项以处理执行一批操作的请求,或者默认实现将循环访问这些操作并调用 ContentProviderOperation#apply 每个操作。

ApplyBatch(String, IList<ContentProviderOperation>)

重写此项以处理执行一批操作的请求,或者默认实现将循环访问这些操作并调用 ContentProviderOperation#apply 每个操作。

ApplyBatch(IList<ContentProviderOperation>)

重写此项以处理执行一批操作的请求,或者默认实现将循环访问这些操作并调用 ContentProviderOperation#apply 每个操作。

[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[]

参数

operations
IList<ContentProviderOperation>

要应用的操作

返回

应用程序的结果

属性

注解

Java文档android.content.ContentProvider.applyBatch(java.lang.String, java.util.ArrayList)。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于

ApplyBatch(String, IList<ContentProviderOperation>)

重写此项以处理执行一批操作的请求,或者默认实现将循环访问这些操作并调用 ContentProviderOperation#apply 每个操作。

[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[]

参数

authority
String

此值不能为 null。

operations
IList<ContentProviderOperation>

要应用的操作

返回

应用程序的结果

属性

注解

重写此项以处理执行一批操作的请求,或者默认实现将循环访问这些操作并调用 ContentProviderOperation#apply 每个操作。 如果所有调用 ContentProviderOperation#apply 都成功,则会 ContentProviderResult 返回包含任意数量的元素的数组。 如果任一调用失败,则由实现其他调用中的多少个生效。 可以从多个线程调用此方法,如 进程和线程中所述。

Java文档android.content.ContentProvider.applyBatch(java.lang.String, java.util.ArrayList<android.content.ContentProviderOperation>)。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于