Share via


TextFormat.LegibleSize Method (UInt64, Int32, LegibleSizeFormat)

 

Displays a nonnegative 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(
    ulong sizeInBytes,
    int decimalPlaces,
    LegibleSizeFormat sizeFormat
)
public:
static String^ LegibleSize(
    unsigned long long sizeInBytes,
    int decimalPlaces,
    LegibleSizeFormat sizeFormat
)
Public Shared Function LegibleSize (
    sizeInBytes As ULong,
    decimalPlaces As Integer,
    sizeFormat As LegibleSizeFormat
) As String

Parameters

  • decimalPlaces
    Type: System.Int32

    The number of rounding decimal digits.

Return Value

Type: System.String

A System.String.

See Also

LegibleSize Overload
TextFormat Class
Microsoft.WindowsServerSolutions.Common Namespace

Return to top