SPUtility.FormatSize Method

Determines the format size, in megabytes or kilobytes.

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
Public Shared Function FormatSize ( _
    cbSize As Long _
) As String
'Usage
Dim cbSize As Long
Dim returnValue As String

returnValue = SPUtility.FormatSize(cbSize)
public static string FormatSize(
    long cbSize
)

Parameters

Return Value

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

See Also

Reference

SPUtility Class

SPUtility Members

Microsoft.SharePoint.Utilities Namespace