Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxCloudStorage.OnItemRestoredFromTrash Event

In This Article

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

Delphi
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.

See Also