DocumentsContract.RestoreDocumentFromTrash(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.
Restores a document from the trash.
[Android.Runtime.Register("restoreDocumentFromTrash", "(Landroid/content/ContentResolver;Landroid/net/Uri;Landroid/net/Uri;)Landroid/net/Uri;", "", ApiSince=37)]
public static Android.Net.Uri? RestoreDocumentFromTrash(Android.Content.ContentResolver content, Android.Net.Uri sourceDocumentUri, Android.Net.Uri? targetParentDocumentUri);
[<Android.Runtime.Register("restoreDocumentFromTrash", "(Landroid/content/ContentResolver;Landroid/net/Uri;Landroid/net/Uri;)Landroid/net/Uri;", "", ApiSince=37)>]
static member RestoreDocumentFromTrash : Android.Content.ContentResolver * Android.Net.Uri * Android.Net.Uri -> Android.Net.Uri
Parameters
- content
- ContentResolver
- sourceDocumentUri
- Uri
trashed document to restore
- targetParentDocumentUri
- Uri
parent document to restore the document to
Returns
the restored document, or null if failed.
- Attributes
Remarks
Restores a document from the trash.
Android reference for android.provider.DocumentsContract.restoreDocumentFromTrash.
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.