Partager via


TextFormat.LegibleSize Method (Int64, Int32)

 

Displays a byte amount, up to the exabyte (EB) level, as a text string in the default 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
)
public:
static String^ LegibleSize(
    long long sizeInBytes,
    int decimalPlaces
)
Public Shared Function LegibleSize (
    sizeInBytes As Long,
    decimalPlaces As Integer
) 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