Udostępnij za pośrednictwem


DocumentsContract.DeleteDocument(ContentResolver, Uri) Method

Definition

Delete the given document.

[Android.Runtime.Register("deleteDocument", "(Landroid/content/ContentResolver;Landroid/net/Uri;)Z", "")]
public static bool DeleteDocument (Android.Content.ContentResolver content, Android.Net.Uri documentUri);
[<Android.Runtime.Register("deleteDocument", "(Landroid/content/ContentResolver;Landroid/net/Uri;)Z", "")>]
static member DeleteDocument : Android.Content.ContentResolver * Android.Net.Uri -> bool

Parameters

content
ContentResolver
documentUri
Uri

document with Document#FLAG_SUPPORTS_DELETE

Returns

if the document was deleted successfully.

Attributes

Remarks

Delete the given document.

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