ContentProviderOperation.Builder.WithExceptionAllowed(Boolean) Method

Definition

If set to true, this operation allows subsequent operations to continue even if this operation throws an exception. When true, any encountered exception is returned via 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

Parameters

exceptionAllowed
Boolean

Whether the operation is allowed to return an exception.

Returns

This value cannot be null .

Attributes

Remarks

If set to true, this operation allows subsequent operations to continue even if this operation throws an exception. When true, any encountered exception is returned via ContentProviderResult.exception .

Java documentation for android.content.ContentProviderOperation.Builder.withExceptionAllowed(boolean).

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