Udostępnij za pośrednictwem


DocumentsProvider.CopyDocument(String, String) Method

Definition

Copy the requested document or a document tree.

[Android.Runtime.Register("copyDocument", "(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;", "GetCopyDocument_Ljava_lang_String_Ljava_lang_String_Handler", ApiSince=24)]
public virtual string? CopyDocument (string? sourceDocumentId, string? targetParentDocumentId);
[<Android.Runtime.Register("copyDocument", "(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;", "GetCopyDocument_Ljava_lang_String_Ljava_lang_String_Handler", ApiSince=24)>]
abstract member CopyDocument : string * string -> string
override this.CopyDocument : string * string -> string

Parameters

sourceDocumentId
String

the document to copy.

targetParentDocumentId
String

the target document to be copied into as a child.

Returns

Attributes

Remarks

Copy the requested document or a document tree.

Copies a document including all child documents to another location within the same document provider. Upon completion returns the document id of the copied document at the target destination. null must never be returned.

Java documentation for android.provider.DocumentsProvider.copyDocument(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