Share via


DocumentsContract.GetRootId(Uri) Method

Definition

Extract the Root#COLUMN_ROOT_ID from the given URI.

[Android.Runtime.Register("getRootId", "(Landroid/net/Uri;)Ljava/lang/String;", "")]
public static string? GetRootId (Android.Net.Uri? rootUri);
[<Android.Runtime.Register("getRootId", "(Landroid/net/Uri;)Ljava/lang/String;", "")>]
static member GetRootId : Android.Net.Uri -> string

Parameters

rootUri
Uri

Returns

Attributes

Remarks

Extract the Root#COLUMN_ROOT_ID from the given URI.

Java documentation for android.provider.DocumentsContract.getRootId(android.net.Uri).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to