Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

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


Type: System.Int64

The size in Bytes.

Return value

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