Size Property (FileInfo)

Class

FileInfo.

Action

Gets the size of the file. Returns 0.0 for directories. The unit for the file size is determined when using the methods GetFileInfo and GetDirectoryContents.

Syntax

C#

public Double Size { get; }

VB

Public Read Property Size As Double

Access

Read only.