Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
FormatSize method
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


Type: System.Int64

The size in Bytes.

Return value

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