Android Guides | Samples

Android.Content.ContentValues Class

This class is used to store a set of values that the ContentResolver can process.

See Also: ContentValues

Syntax

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

Remarks

This class is used to store a set of values that the ContentResolver can process.

[Android Documentation]

Requirements

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

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

See Also: Object

Public Constructors

Creates an empty set of values using the default initial size
Creates a set of values copied from the given set
Creates an empty set of values using the given initial size

Public Fields

const
TagString.

Public Properties

[read-only]
static
CreatorIParcelableCreator.

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

Clear()
Removes all values.
ContainsKey(String) : Boolean
Returns true if this object has the named value.
DescribeContents() : Int32
Describe the kinds of special objects contained in this Parcelable's marshalled representation.
Get(String) : Object
Gets a value.
GetAsBoolean(String) : Boolean
Gets a value and converts it to a Boolean.
GetAsByte(String) : SByte
Gets a value and converts it to a Byte.
GetAsByteArray(String) : Byte[]
Gets a value that is a byte array.
GetAsDouble(String) : Double
Gets a value and converts it to a Double.
GetAsFloat(String) : Single
Gets a value and converts it to a Float.
GetAsInteger(String) : Int32
Gets a value and converts it to an Integer.
GetAsLong(String) : Int64
Gets a value and converts it to a Long.
GetAsShort(String) : Int16
Gets a value and converts it to a Short.
GetAsString(String) : String
Gets a value and converts it to a String.
KeySet() : ICollection<string>
Returns a set of all of the keys
Put(String, Boolean)
Adds a value to the set.
Put(String, Byte[])
Adds a value to the set.
Put(String, Double)
Adds a value to the set.
Put(String, Int16)
Adds a value to the set.
Put(String, Int32)
Adds a value to the set.
Put(String, Int64)
Adds a value to the set.
Put(String, SByte)
Adds a value to the set.
Put(String, Single)
Adds a value to the set.
Put(String, String)
Adds a value to the set.
PutAll(ContentValues)
Adds all values from the passed in ContentValues.
PutNull(String)
Adds a null value to the set.
Remove(String)
Remove a single value.
Size() : Int32
Returns the number of values.
WriteToParcel(Parcel, ParcelableWriteFlags)
Flatten this object in to a Parcel.