Click or drag to resize

IAssetCurrentVersionStorageSize Method


Retrieves the storage size of the asset file for current version of the context asset.

Namespace:  Ingeniux.CMS
Assembly:  Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 10.3.169
Syntax
double CurrentVersionStorageSize()

Return Value

Type: Double
Size of the current version of the asset file, in KB.
Examples
Example of checking the current version storage size in custom hook:
C#
if(contentItem.CurrentVersionStorageSize() > 1000){
    //Additional Actions
}
See Also