FormatSize method
TOC
Collapse the table of content
Expand the table of content

SPUtility.FormatSize method

Determines the format size, in megabytes or kilobytes.

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

public static string FormatSize(
	long cbSize
)

Parameters

cbSize
Type: System.Int64

The size in Bytes.

Return value

Type: System.String
A string that contains the format size.
Show:
© 2016 Microsoft