Skip to main content

TdxCloudStorageProvider.GetExtension(TdxCloudStorageItem) Method

Returns a filename extension for the specified cloud resource metadata container.

Declaration

function GetExtension(AItem: TdxCloudStorageItem): string; virtual;

Parameters

Name Type
AItem TdxCloudStorageItem

Returns

Type
string

Remarks

Call this function to obtain the filename extension corresponding to the data format of the online storage resource whose metadata container is passed as the AItem parameter. If the file metadata container‘s Name property includes the filename extension, the GetExtension function returns it; otherwise, returns the extension corresponding to the file’s multipurpose internet mail extension (MIME) content type (for instance, in the case of Google Documents) or an empty string. The function also returns an empty string if the specified metadata container corresponds to a folder rather than a file.

See Also