Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
cbSize
Type: System.Int64The size in Bytes.
Return Value
Type: System.String
A string that contains the format size.