System.IO.FileInfo.Length Property

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

Syntax

public long Length { get; }

Value

Documentation for this section has not yet been entered.

Remarks

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

To get the latest value, call the FileSystemInfo.Refresh method.

Requirements

Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0