VolumeGetVolumeLabel Method |
Retrieve the label of a file system volume.
Namespace: Alphaleonis.Win32.FilesystemAssembly: AlphaFS (in AlphaFS.dll) Version: 2.0
Syntax public static string GetVolumeLabel(
string volumePath
)
Public Shared Function GetVolumeLabel (
volumePath As String
) As String
public:
static String^ GetVolumeLabel(
String^ volumePath
)
static member GetVolumeLabel :
volumePath : string -> string
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