Click or drag to resize
DataHelperGetSizeString Method
Returns the string for the specified file size.

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 13.0.131
Syntax
C#
public 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