System.IO.DriveInfo.VolumeLabel Property

Gets or sets the volume label of a drive.

Syntax

public string VolumeLabel { get; set; }

Value

Documentation for this section has not yet been entered.

Remarks

The label length is determined by the operating system. For example, NTFS allows a volume label to be up to 32 characters long. Note that null is a valid DriveInfo.VolumeLabel.

Requirements

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