TotalLength Property

The TotalLength property of the SPFile class gets the size of the file in bytes, including the size of any Web Parts used in the file.

Property Value

A long integer that specifies the size of the file.

Remarks

The value of the TotalLength property includes the sizes of the following:

  • Web Part Page .aspx file.
  • Web Parts table row for each Web Part on the Web Part Page.
  • Personalization table row for each Web Part Personalization.

The value of this property does not include the size of class resources for Web Parts.

Requirements

Platforms: Microsoft Windows Server 2003

Security: Code Access Security