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

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 10.0.0
Syntax
C#
public static string GetSizeString(
	long size,
	FileSizeUnitsEnum unit = FileSizeUnitsEnum.Automatic
)

Parameters

size
Type: System.Int64
File size in bytes
unit (Optional)
Type: CMS.Helpers.FileSizeUnitsEnum
Unit in which you want the result

Return Value

Type: String
See Also