TextFormat.LegibleSize Method (Int64, Int32, LegibleSizeFormat)
Displays a byte amount, up to the exabyte (EB) level, as a text string in the specified format with the specified number of rounding decimal digits.
Namespace: Microsoft.WindowsServerSolutions.Common
Assembly: AdminCommon (in AdminCommon.dll)
Syntax
public static string LegibleSize(
long sizeInBytes,
int decimalPlaces,
LegibleSizeFormat sizeFormat
)
public:
static String^ LegibleSize(
long long sizeInBytes,
int decimalPlaces,
LegibleSizeFormat sizeFormat
)
Public Shared Function LegibleSize (
sizeInBytes As Long,
decimalPlaces As Integer,
sizeFormat As LegibleSizeFormat
) As String
Parameters
sizeInBytes
Type: System.Int64The byte amount.
decimalPlaces
Type: System.Int32The number of rounding decimal digits.
sizeFormat
Type: Microsoft.WindowsServerSolutions.Common.LegibleSizeFormatOne of the LegibleSizeFormat enumeration values that represents the size format to be used.
Return Value
Type: System.String
See Also
LegibleSize Overload
TextFormat Class
Microsoft.WindowsServerSolutions.Common Namespace
Return to top