VDriveInfo Constructor
Namespace: Rebex.IO
Assembly: Rebex.FileSystem.dll (version 7.0.9083)
VDriveInfo(String)
Initializes a new instance of the VDriveInfo. Consider using the AsVDriveInfo(FileSystemProvider) method or call GetDrives() method if you don't know the drive (file system provider) name.
Declaration
public VDriveInfo(string driveName)
Parameters
Type | Name | Description |
---|---|---|
String | driveName | Valid drive name. |
Remarks
When the driveName
does not reference valid virtual system drive then IOException is thrown.
Examples
//Create built-in and/or custom VFS providers
var localFileSystemProvider = new LocalFileSystemProvider(localPath);
var memoryProvider = new MemoryFileSystemProvider();
var mcfsp = new MountCapableFileSystemProvider();
//Show registered drives
foreach (VDriveInfo drive in VDriveInfo.GetDrives())
{
Console.WriteLine(drive.Name);
}