ContentProviderOperation.Builder.WithExpectedCount(Int32) Method

Definition

If set then if the number of rows affected by this operation do not match this count OperationApplicationException will be throw.

[Android.Runtime.Register("withExpectedCount", "(I)Landroid/content/ContentProviderOperation$Builder;", "GetWithExpectedCount_IHandler")]
public virtual Android.Content.ContentProviderOperation.Builder WithExpectedCount(int count);
[<Android.Runtime.Register("withExpectedCount", "(I)Landroid/content/ContentProviderOperation$Builder;", "GetWithExpectedCount_IHandler")>]
abstract member WithExpectedCount : int -> Android.Content.ContentProviderOperation.Builder
override this.WithExpectedCount : int -> Android.Content.ContentProviderOperation.Builder

Parameters

count
Int32

The expected number of rows affected by the operation.

Returns

this builder, to allow for chaining. This value cannot be null .

Attributes

Remarks

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.

Java documentation for android.content.ContentProviderOperation.Builder.withExpectedCount(int).

Applies to