Skip to main content

TdxCloudStorage.TItemChangedEvent Type

The procedural type of the cloud resource state change event.

Declaration

TItemChangedEvent = procedure(Sender: TObject; const AItem: TdxCloudStorageItem) of object;

Parameters

Name Type Description
Sender TObject

The cloud storage component that changed the state of a cloud resource.

AItem TdxCloudStorageItem

The resource metadata container that corresponds to a changed file or folder stored at the connected server.

Remarks

The Sender parameter provides access to the cloud storage component that raised the cloud folder or filcopy),delete, or move event. To access the cloud storage component’s class members within a TItemChangedEvent event handler, cast the parameter value to the TdxCloudStorage class.

The AItem parameter provides access to the item metadata container corresponding to the successfully copied, deleted, or moved file or folder on the connected online storage service’s server. To access all class-specific members of the target file or folder, cast the AItem parameter to the corresponding TdxCloudStorageItem class descendant (TdxCloudStorageFile or TdxCloudStorageFolder, for instance). Call the AItem.ClassName or AItem.ClassType function to identify the actual type of the target cloud storage item.

The OnItemCopied, OnItemDeleted, OnItemMoved, OnItemMovedToTrash, OnItemPermissionsLoaded, and OnItemRestoredFromTrash events reference the TItemChangedEvent procedural type.

Note

An attempt to copy, move, delete, or trash the cloud storage root or any special folder always raises an exception that displays the corresponding message box.

See Also