语言

DocumentsContract.GetTreeDocumentId(Uri) 方法

定义

从给定 URI 中提取路径 Document#COLUMN_DOCUMENT_ID 。

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

参数

documentUri
Uri

要从中提取标识符的树 URI。

返回

树根处的文档的标识符。

特性

注解

从给定 URI 中提取树 Document#COLUMN_DOCUMENT_ID 。

适用于 . 的 android.provider.DocumentsContract.getTreeDocumentId(android.net.Uri)Java 文档

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于