TdxCloudStorage.OnItemRestoredFromTrash Event
Notifies that an online resource is successfully restored from the “Trash” special folder at the original position within the connected cloud file storage’s resource hierarchy.
Declaration
property OnItemRestoredFromTrash: TItemChangedEvent read; write;
Remarks
This event occurs every time a cloud storage metadata container‘s RestoreFromTrash procedure call successfully restores the corresponding file or folder from the “Trash” folder. If an attempt to restore a file or folder results in an error, the OnError event occurs instead.
For instance, you can handle the OnItemRestoredFromTrash event to refresh the file storage structure displayed in your application’s UI to reflect the changes when certain files or folders are moved from the “Trash” folder back to their original parent folder. Refer to the TItemChangedEvent nested type description for details on parameters accessible within an OnItemRestoredFromTrash event handler.
Note
An attempt to trash or restore the cloud storage root or any special folder raises an exception rather than the OnError event.