Condividi tramite


DocumentsProvider.FindDocumentPath(String, String) Method

Definition

Finds the canonical path for the requested document.

[Android.Runtime.Register("findDocumentPath", "(Ljava/lang/String;Ljava/lang/String;)Landroid/provider/DocumentsContract$Path;", "GetFindDocumentPath_Ljava_lang_String_Ljava_lang_String_Handler", ApiSince=26)]
public virtual Android.Provider.DocumentsContract.Path? FindDocumentPath (string? parentDocumentId, string? childDocumentId);
[<Android.Runtime.Register("findDocumentPath", "(Ljava/lang/String;Ljava/lang/String;)Landroid/provider/DocumentsContract$Path;", "GetFindDocumentPath_Ljava_lang_String_Ljava_lang_String_Handler", ApiSince=26)>]
abstract member FindDocumentPath : string * string -> Android.Provider.DocumentsContract.Path
override this.FindDocumentPath : string * string -> Android.Provider.DocumentsContract.Path

Parameters

parentDocumentId
String

the document from which the path starts if not null, or null to indicate a path from the root is requested.

childDocumentId
String

the document which path is requested.

Returns

the path of the requested document. If parentDocumentId is null returned root ID must not be null. If parentDocumentId is not null returned root ID must be null.

Attributes

Remarks

Java documentation for android.provider.DocumentsProvider.findDocumentPath(java.lang.String, java.lang.String).

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