SPUtility.FormatSize method
會決定格式大小 (mb) 或 kb 為單位。
Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Shared Function FormatSize ( _
cbSize As Long _
) As String
'用途
Dim cbSize As Long
Dim returnValue As String
returnValue = SPUtility.FormatSize(cbSize)
public static string FormatSize(
long cbSize
)
參數
cbSize
Type: System.Int64以位元組為單位大小。
傳回值
Type: System.String
內含格式大小的字串。