Click or drag to resize
FileInfoLength Property
Gets the size, in bytes, of the current file.

Namespace: Alphaleonis.Win32.Filesystem
Assembly: AlphaFS (in AlphaFS.dll) Version: 2.0
Syntax
public long Length { get; }

Property Value

Type: Int64
The size of the current file in bytes.
Exceptions
ExceptionCondition
FileNotFoundExceptionThe file does not exist or the Length property is called for a directory.
IOException
Remarks

The value of the Length property is pre-cached

To get the latest value, call the Refresh method.

See Also