Android Guides | Samples

Android.Content.ContentProviderOperation.Builder Class

Used to add parameters to a ContentProviderOperation.

See Also: ContentProviderOperation+Builder


[Android.Runtime.Register("android/content/ContentProviderOperation$Builder", DoNotGenerateAcw=true)]
public class ContentProviderOperation.Builder : Object


Used to add parameters to a ContentProviderOperation. The ContentProviderOperation+Builder is first created by calling ContentProviderOperation.NewInsert(Uri), ContentProviderOperation.NewUpdate(Uri), ContentProviderOperation.NewDelete(Uri) or ContentProviderOperation.NewAssertQuery(Uri). The withXXX methods can then be used to add parameters to the builder. See the specific methods to find for which ContentProviderOperation+Builder type each is allowed. Call ContentProviderOperation+Builder.Build to create the ContentProviderOperation once all the parameters have been supplied.

[Android Documentation]


Namespace: Android.Content
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions:
Since: Added in API level 5

The members of Android.Content.ContentProviderOperation.Builder are listed below.

See Also: Object

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Protected Properties

ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

Build() : ContentProviderOperation
Create a ContentProviderOperation from this ContentProviderOperation+Builder.
WithExpectedCount(Int32) : ContentProviderOperation+Builder
If set then if the number of rows affected by this operation do not match this count OperationApplicationException will be throw.
WithSelection(String, String[]) : ContentProviderOperation+Builder
The selection and arguments to use.
WithSelectionBackReference(Int32, Int32) : ContentProviderOperation+Builder
Add a back references as a selection arg.
WithValue(String, Object) : ContentProviderOperation+Builder
A value to insert or update.
WithValueBackReference(String, Int32) : ContentProviderOperation+Builder
Add a ContentValues back reference.
WithValueBackReferences(ContentValues) : ContentProviderOperation+Builder
Add a ContentValues of back references.
WithValues(ContentValues) : ContentProviderOperation+Builder
The ContentValues to use.
WithYieldAllowed(Boolean) : ContentProviderOperation+Builder