Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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 and a maximum length.
Namespace:   Microsoft.WindowsServerSolutions.Common
Assembly:  AdminCommon (in AdminCommon.dll)
Syntax
public static string LegibleSize(
    long sizeInBytes,
    int decimalPlaces,
    int maxLength
)
public:
static String^ LegibleSize(
    long long sizeInBytes,
    int decimalPlaces,
    int maxLength
)
Public Shared Function LegibleSize (
    sizeInBytes As Long,
    decimalPlaces As Integer,
    maxLength As Integer
) As String
Parameters
- sizeInBytes 
 Type: System.Int64- The byte amount. 
- decimalPlaces 
 Type: System.Int32- The number of rounding decimal digits. 
- maxLength 
 Type: System.Int32- The maximum length of the resulting text string. 
Return Value
Type: System.String
See Also
LegibleSize Overload
TextFormat Class
Microsoft.WindowsServerSolutions.Common Namespace
Return to top