ContentProviderOperation.Builder.WithExceptionAllowed(Boolean) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
如果设置为 true,此操作允许后续操作继续,即使此操作引发异常也是如此。 如果为 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
是否允许操作返回异常。
返回
此值不能为 null。
- 特性
注解
如果设置为 true,此操作允许后续操作继续,即使此操作引发异常也是如此。 如果为 true,则通过 ContentProviderResult.exception 返回任何遇到的异常。
Java文档android.content.ContentProviderOperation.Builder.withExceptionAllowed(boolean)。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。