Click or drag to resize
DataHelperGetSizeString Method (Int64, FileSizeUnitsEnum)
Returns the string for the specified file size.

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

Parameters

size
Type: SystemInt64
File size in bytes
unit
Type: CMS.BaseFileSizeUnitsEnum
Unit in which you want to result

Return Value

Type: String
See Also