語言

ContentProviderOperation.Builder.WithExceptionAllowed(Boolean) 方法

定義

若設為 true,則即使拋出例外,後續操作仍可繼續。 當為真時,遇到的任何例外都會透過 ContentProviderResult.exception 回傳。

[Android.Runtime.Register("withExceptionAllowed", "(Z)Landroid/content/ContentProviderOperation$Builder;", "GetWithExceptionAllowed_ZHandler", ApiSince=30)]
public virtual Android.Content.ContentProviderOperation.Builder WithExceptionAllowed(bool exceptionAllowed);
[<Android.Runtime.Register("withExceptionAllowed", "(Z)Landroid/content/ContentProviderOperation$Builder;", "GetWithExceptionAllowed_ZHandler", ApiSince=30)>]
abstract member WithExceptionAllowed : bool -> Android.Content.ContentProviderOperation.Builder
override this.WithExceptionAllowed : bool -> Android.Content.ContentProviderOperation.Builder

參數

exceptionAllowed
Boolean

操作是否允許回傳例外。

傳回

此值不可能是空值。

屬性

備註

若設為 true,則即使拋出例外,後續操作仍可繼續。 當為真時,遇到的任何例外都會透過 ContentProviderResult.exception 回傳。

Java 文件 android.content.ContentProviderOperation.Builder.withExceptionAllowed(boolean)。

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

適用於