Click or drag to resize
Volume Methods

The Volume type exposes the following members.

Methods
  NameDescription
Public methodStatic memberDefineDosDevice(String, String)
Defines, redefines, or deletes MS-DOS device names.
Public methodStatic memberDefineDosDevice(String, String, DosDeviceAttributes)
Defines, redefines, or deletes MS-DOS device names.
Public methodStatic memberDeleteCurrentVolumeLabel
Deletes the label of the file system volume that is the root of the current directory.
Public methodStatic memberDeleteDosDevice(String)
Deletes an MS-DOS device name.
Public methodStatic memberDeleteDosDevice(String, String)
Deletes an MS-DOS device name.
Public methodStatic memberDeleteDosDevice(String, String, Boolean)
Deletes an MS-DOS device name.
Public methodStatic memberDeleteDosDevice(String, String, DosDeviceAttributes, Boolean)
Deletes an MS-DOS device name.
Public methodStatic memberDeleteVolumeLabel
Deletes the label of a file system volume.
Public methodStatic memberDeleteVolumeMountPoint
Deletes a Drive letter or mounted folder.
Public methodStatic memberEnumerateVolumeMountPoints
Returns an enumerable collection of String of all mounted folders (volume mount points) on the specified volume.
Public methodStatic memberEnumerateVolumePathNames
Returns an enumerable collection of String drive letters and mounted folder paths for the specified volume.
Public methodStatic memberEnumerateVolumes
Returns an enumerable collection of String volumes on the computer.
Public methodStatic memberGetCurrentDriveType
Determines, based on the root of the current directory, whether a disk drive is a removable, fixed, CD-ROM, RAM disk, or network drive.
Public methodStatic memberGetDiskFreeSpace(String)
Retrieves information about the amount of space that is available on a disk volume, which is the total amount of space, the total amount of free space, and the total amount of free space available to the user that is associated with the calling thread.
Public methodStatic memberGetDiskFreeSpace(String, NullableBoolean)
Retrieves information about the amount of space that is available on a disk volume, which is the total amount of space, the total amount of free space, and the total amount of free space available to the user that is associated with the calling thread.
Public methodStatic memberGetDriveFormat
Gets the name of the file system, such as NTFS or FAT32.
Public methodStatic memberGetDriveNameForNtDeviceName
Gets the drive letter from an MS-DOS device name. For example: "\Device\HarddiskVolume2" returns "C:\".
Public methodStatic memberGetDriveType
Determines whether a disk drive is a removable, fixed, CD-ROM, RAM disk, or network drive.
Public methodStatic memberGetUniqueVolumeNameForPath
Get the unique volume name for the given path.
Public methodStatic memberGetVolumeDeviceName
Retrieves the Win32 Device name from the Volume name.
Public methodStatic memberGetVolumeDisplayName
Gets the shortest display name for the specified volumeName.
Public methodStatic memberGetVolumeGuid
Retrieves a volume Guid path for the volume that is associated with the specified volume mount point (drive letter, volume GUID path, or mounted folder).
Public methodStatic memberGetVolumeGuidForNtDeviceName
Tranlates DosDevicePath to a Volume GUID. For example: "\Device\HarddiskVolumeX\path\filename.ext" can translate to: "\path\ filename.ext" or: "\\?\Volume{GUID}\path\filename.ext".
Public methodStatic memberGetVolumeInfo(SafeFileHandle)
Retrieves information about the file system and volume associated with the specified root file or directorystream.
Public methodStatic memberGetVolumeInfo(String)
Retrieves information about the file system and volume associated with the specified root file or directorystream.
Public methodStatic memberGetVolumeLabel
Retrieve the label of a file system volume.
Public methodStatic memberGetVolumePathName
Retrieves the volume mount point where the specified path is mounted.
Public methodStatic memberIsReady
Gets a value indicating whether a drive is ready.
Public methodStatic memberIsSameVolume
Determines whether the volume of two file system objects is the same.
Public methodStatic memberIsVolume
Determines whether the specified volume name is a defined volume on the current computer.
Public methodStatic memberQueryAllDosDevices
Retrieves a list of all existing MS-DOS device names.
Public methodStatic memberQueryAllDosDevices(String)
Retrieves a list of all existing MS-DOS device names.
Public methodStatic memberQueryDosDevice
Retrieves information about MS-DOS device names. The function can obtain the current mapping for a particular MS-DOS device name. The function can also obtain a list of all existing MS-DOS device names.
Public methodStatic memberSetCurrentVolumeLabel
Sets the label of the file system volume that is the root of the current directory.
Public methodStatic memberSetVolumeLabel
Sets the label of a file system volume.
Public methodStatic memberSetVolumeMountPoint
Associates a volume with a Drive letter or a directory on another volume.
Top
See Also