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
)

Parameters

cbSize
Type: System.Int64

The size in Bytes.

Return value

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