Android.Content.ContentUris.ParseId Method
Converts the last path segment to a long.

Syntax

[Android.Runtime.Register("parseId", "(Landroid/net/Uri;)J", "")]
public static long ParseId (Android.Net.Uri contentUri)

Parameters

contentUri
Documentation for this section has not yet been entered.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.UnsupportedOperationExceptionif this isn't a hierarchical URI
Java.Lang.NumberFormatExceptionif the last segment isn't a number

Remarks

Converts the last path segment to a long.

This supports a common convention for content URIs where an ID is stored in the last segment.

[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