語言

ContentProvider.ApplyBatch 方法

定義

多載

名稱 Description
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)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

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

此值不可能是空值。

operations
IList<ContentProviderOperation>

適用的運算

傳回

申請結果

屬性

備註

覆寫此設定以處理執行一批操作的請求,否則預設實作會反覆處理這些操作並呼叫 ContentProviderOperation#apply 每一個操作。 若所有呼叫皆 ContentProviderOperation#apply 成功,則 ContentProviderResult 會回傳一個包含與操作數量相同元素的陣列。 若有任何通話失敗,則由執行方決定其他通話的生效數量。 此方法可從多個執行緒呼叫,詳見 《程序與執行緒》一文。

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

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於