Megosztás a következőn keresztül:


DocumentsContract.GetDocumentId(Uri) Method

Definition

Extract the Document#COLUMN_DOCUMENT_ID from the given URI.

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

Parameters

documentUri
Uri

Returns

Attributes

Remarks

Extract the Document#COLUMN_DOCUMENT_ID from the given URI.

Java documentation for android.provider.DocumentsContract.getDocumentId(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

See also

  • <xref:Android.Provider.DocumentsContract.IsDocumentUri(Android.Content.Context%2c+Android.Net.Uri)>