SPFile.Length property
Gets the size of the file in bytes, excluding the size of any Web Parts that are used in the file.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public ReadOnly Property Length As Long
Get
'Usage
Dim instance As SPFile
Dim value As Long
value = instance.Length
public long Length { get; }
Property value
Type: System.Int64
A 64-bit integer that represents the size of the file.