DriveInfo.VolumeLabel Property
Click or drag to resize
DriveInfoVolumeLabel Property
Gets or sets the volume label of a drive.

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

Return Value

Type: String
The volume label.
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 is a valid VolumeLabel.
See Also