DataHelperGetSizeString Method |
Returns the string for the specified file size.
Namespace: CMS.HelpersAssembly: CMS.Helpers (in CMS.Helpers.dll) Version: 10.0.0
Syntaxpublic static string GetSizeString(
long size,
FileSizeUnitsEnum unit = FileSizeUnitsEnum.Automatic
)
Parameters
- size
- Type: SystemInt64
File size in bytes - unit (Optional)
- Type: CMS.HelpersFileSizeUnitsEnum
Unit in which you want the result
Return Value
Type:
String
See Also