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)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

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.

See Also

Reference

SPFile Class

SPFile Members

Microsoft.SharePoint Namespace