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)

public long Length { get; }

Property value

Type: System.Int64
A 64-bit integer that represents the size of the file.
Show: