Android Guides | Samples

Android.Content.ContentProviderOperation Class

Represents a single operation to be performed as part of a batch of operations.

See Also: ContentProviderOperation

Syntax

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

Remarks

Represents a single operation to be performed as part of a batch of operations.

See Also

[Android Documentation]

Requirements

Namespace: Android.Content
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0

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

See Also: Object

Protected Constructors

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

Public Properties

[read-only]
static
CreatorIParcelableCreator.
[read-only]
IsReadOperationBoolean. Returns true if the operation represents an assert query.
[read-only]
IsWriteOperationBoolean. Returns true if the operation represents an insertion, deletion, or update.
[read-only]
IsYieldAllowedBoolean. Returns true if the operation allows yielding the database to other transactions if the database is contended.
[read-only]
UriUri. Gets the Uri for the target of the operation.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

Apply(ContentProvider, ContentProviderResult[], Int32) : ContentProviderResult
Applies this operation using the given provider.
DescribeContents() : Int32
Describe the kinds of special objects contained in this Parcelable's marshalled representation.
static
NewAssertQuery(Uri) : ContentProviderOperation+Builder
Create a NoType:android/content/ContentProviderOperation$Builder;Href=../../../reference/android/content/ContentProviderOperation.Builder.html suitable for building a ContentProviderOperation to assert a set of values as provided through NoType:android/content/ContentProviderOperation$Builder;Href=../../../reference/android/content/ContentProviderOperation.Builder.html#withValues(android.content.ContentValues).
static
NewDelete(Uri) : ContentProviderOperation+Builder
Create a NoType:android/content/ContentProviderOperation$Builder;Href=../../../reference/android/content/ContentProviderOperation.Builder.html suitable for building a delete ContentProviderOperation.
static
NewInsert(Uri) : ContentProviderOperation+Builder
Create a NoType:android/content/ContentProviderOperation$Builder;Href=../../../reference/android/content/ContentProviderOperation.Builder.html suitable for building an insert ContentProviderOperation.
static
NewUpdate(Uri) : ContentProviderOperation+Builder
Create a NoType:android/content/ContentProviderOperation$Builder;Href=../../../reference/android/content/ContentProviderOperation.Builder.html suitable for building an update ContentProviderOperation.
ResolveSelectionArgsBackReferences(ContentProviderResult[], Int32) : String[]
The Selection Arguments back references are represented as a Map of Integer->Integer where the key is an index into the selection argument array (see NoType:android/content/ContentProviderOperation$Builder;Href=../../../reference/android/content/ContentProviderOperation.Builder.html#withSelection(java.lang.String, java.lang.String[])) and the value is the index of the previous result that should be used for that selection argument array slot.
ResolveValueBackReferences(ContentProviderResult[], Int32) : ContentValues
The ContentValues back references are represented as a ContentValues object where the key refers to a column and the value is an index of the back reference whose valued should be associated with the column.
WriteToParcel(Parcel, ParcelableWriteFlags)
Flatten this object in to a Parcel.