Android Guides | Samples

Android.Content.ContentUris Class

Utility methods useful for working with Uri objects that use the "content" (content://) scheme.

See Also: ContentUris

Syntax

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

Remarks

Utility methods useful for working with Uri objects that use the "content" (content://) scheme.

content:
The scheme portion of the URI. This is always set to ContentResolver.SchemeContent (value content://).
authority
A string that identifies the entire content provider. All the content URIs for the provider start with this string. To guarantee a unique authority, providers should consider using an authority that is the same as the provider class' package identifier.
path
Zero or more segments, separated by a forward slash (/), that identify some subset of the provider's data. Most providers use the path part to identify individual tables. Individual segments in the path are often called "directories" although they do not refer to file directories. The right-most segment in a path is often called a "twig"
id
A unique numeric identifier for a single row in the subset of data identified by the preceding path part. Most providers recognize content URIs that contain an id part and give them special handling. A table that contains a column named _ID often expects the id part to be a particular value for that column.

Content URIs have the syntax

content://authority/path/id

[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.ContentUris are listed below.

See Also: Object

Public Constructors

Protected Constructors

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

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

static
AppendId(Uri+Builder, Int64) : Uri+Builder
Appends the given ID to the end of the path.
static
ParseId(Uri) : Int64
Converts the last path segment to a long.
static
WithAppendedId(Uri, Int64) : Uri
Appends the given ID to the end of the path.