次の方法で共有


DocumentsContract.RemoveDocument(ContentResolver, Uri, Uri) Method

Definition

Removes the given document from a parent directory.

[Android.Runtime.Register("removeDocument", "(Landroid/content/ContentResolver;Landroid/net/Uri;Landroid/net/Uri;)Z", "", ApiSince=24)]
public static bool RemoveDocument (Android.Content.ContentResolver content, Android.Net.Uri documentUri, Android.Net.Uri parentDocumentUri);
[<Android.Runtime.Register("removeDocument", "(Landroid/content/ContentResolver;Landroid/net/Uri;Landroid/net/Uri;)Z", "", ApiSince=24)>]
static member RemoveDocument : Android.Content.ContentResolver * Android.Net.Uri * Android.Net.Uri -> bool

Parameters

content
ContentResolver
documentUri
Uri

document with Document#FLAG_SUPPORTS_REMOVE

parentDocumentUri
Uri

parent document of the document to remove.

Returns

true if the document was removed successfully.

Attributes

Remarks

Removes the given document from a parent directory.

In contrast to #deleteDocument it requires specifying the parent. This method is especially useful if the document can be in multiple parents.

Java documentation for android.provider.DocumentsContract.removeDocument(android.content.ContentResolver, android.net.Uri, 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