HttpPostedFile.ContentLength 属性

定义

获取已上载文件的大小(以字节为单位)。Gets the size of an uploaded file, in bytes.

public:
 property int ContentLength { int get(); };
public int ContentLength { get; }
member this.ContentLength : int
Public ReadOnly Property ContentLength As Integer

属性值

Int32

文件长度(以字节为单位)。The file length, in bytes.

适用于

另请参阅