ContentLength Property
Collapse the table of content
Expand the table of content

HttpPostedFile.ContentLength Property

Gets the size in bytes of an uploaded file.

[Visual Basic]
Public ReadOnly Property ContentLength As Integer
[C#]
public int ContentLength {get;}
[C++]
public: __property int get_ContentLength();
[JScript]
public function get ContentLength() : int;

Property Value

The length of the file.

Requirements

Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

See Also

HttpPostedFile Class | HttpPostedFile Members | System.Web Namespace

Show:
© 2016 Microsoft