FileSystemProviderSettings.DriveName Property
Namespace: Rebex.IO.FileSystem
Assembly: Rebex.Common.dll (version 7.0.9147)
DriveName
Gets or sets VDrive
Default value is Empty. In this case, an autogenerated name will be used (based on the name of the file system provider implementation class).
Declaration
public string DriveName { get; set; }
Property Value
Type | Description |
---|---|
String |
Remarks
- When the Enable
Registration property is set to false, then setting the DriveAs Drive Name property has no observable effect. The FileSystem is not registered as a drive, so the drive name is never used.Provider - The drive name must be unique. It is guaranteed that autogenerated name is always unique, so it is recommended to stick with the default behavior.
If this property is set, the developer must ensure that the drive name is unique and not mistakenly reused between file system provider instances; otherwise an exception is thrown, when an attempt to register a drive,
which has a duplicate name, fails.
For example, when a File
System object is shared between file system providers, be careful and double-check that the same drive name is not reused between currently active providers.Provider Settings