DocumentsContract.GetRootId(Uri) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
A URI whose path starts with root followed by a root ID.
Returns
The root ID taken from the URI's second path segment.
- 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.