DocumentsProvider.IsChildDocument(String, String) 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.
Test if a document is descendant (child, grandchild, etc) from the given parent.
[Android.Runtime.Register("isChildDocument", "(Ljava/lang/String;Ljava/lang/String;)Z", "GetIsChildDocument_Ljava_lang_String_Ljava_lang_String_Handler")]
public virtual bool IsChildDocument (string? parentDocumentId, string? documentId);
[<Android.Runtime.Register("isChildDocument", "(Ljava/lang/String;Ljava/lang/String;)Z", "GetIsChildDocument_Ljava_lang_String_Ljava_lang_String_Handler")>]
abstract member IsChildDocument : string * string -> bool
override this.IsChildDocument : string * string -> bool
Parameters
- parentDocumentId
- String
parent to verify against.
- documentId
- String
child to verify.
Returns
if given document is a descendant of the given parent.
- Attributes
Remarks
Test if a document is descendant (child, grandchild, etc) from the given parent. For example, providers must implement this to support Intent#ACTION_OPEN_DOCUMENT_TREE
. You should avoid making network requests to keep this request fast.
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.