Export (0) Print
Expand All

HttpPostedFileBase.ContentLength Property

When overridden in a derived class, gets the size of an uploaded file, in bytes.

Namespace:  System.Web
Assembly:  System.Web (in System.Web.dll)

public virtual int ContentLength { get; }

Property Value

Type: System.Int32
The length of the file, in bytes.

ExceptionCondition
NotImplementedException

Always.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5 SP1
Show:
© 2015 Microsoft