DocumentsContract.RemoveDocument(ContentResolver, Uri, Uri) 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.
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.
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.