Length Property

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Gets the size, in bytes, of the current file.

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

public long Length { get; }

Property Value

Type: System..::..Int64
The size of the current file in bytes.

The value of the Length property is pre-cached if the current instance of the FileInfo object was returned from any of the following DirectoryInfomethods:

Show: