System.IO.DriveInfo.TotalSize Property

Gets the total size of storage space on a drive, in bytes.

Syntax

public long TotalSize { get; }

Value

Documentation for this section has not yet been entered.

Remarks

This property indicates the total size of the drive in bytes, not just what is available to the current user.

Requirements

Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0