Export (0) Print
Expand All
Expand Minimize

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

public long Length { get; }

Property Value

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