共用方式為


SPFile.Length property

取得檔案的大小 (單位為位元組),不包括檔案中使用的任何網頁組件大小。

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'宣告
Public ReadOnly Property Length As Long
    Get
'用途
Dim instance As SPFile
Dim value As Long

value = instance.Length
public long Length { get; }

Property value

Type: System.Int64
64 位元整數,表示檔案的大小。

請參閱

參照

SPFile class

SPFile members

Microsoft.SharePoint namespace