Click or drag to resize

VolumeGetVolumeLabel Method

[AlphaFS] Retrieve the label of a file system volume.

Namespace:  Alphaleonis.Win32.Filesystem
Assembly:  AlphaFS (in AlphaFS.dll) Version: 2.2
Syntax
public static string GetVolumeLabel(
	string volumePath
)

Parameters

volumePath
Type: SystemString
A path to a volume. For example: "C:\", "\\server\share", or "\\?\Volume{c0580d5e-2ad6-11dc-9924-806e6f6e6963}\".

Return Value

Type: String
The the label of the file system volume. This function can return string.Empty since a volume label is generally not mandatory.
See Also