Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

VDriveInfo Constructor

Namespace: Rebex.IO
Assembly: Rebex.FileSystem.dll (version 7.0.9147)

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);
}
See Also
AsVDriveInfo(FileSystemProvider)
GetDrives()
In This Article
  • VDriveInfo(String)
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies