FileSystemProviderSettings.DriveName Property
Namespace: Rebex.IO.FileSystem
Assembly: Rebex.Common.dll (version 7.0.9083)
DriveName
Gets or sets VDriveInfo name to use when registering the file system as a VDriveInfo object.
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 EnableRegistrationAsDrive property is set to false, then setting the DriveName property has no observable effect. The FileSystemProvider is not registered as a drive, so the drive name is never used.
- 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 FileSystemProviderSettings object is shared between file system providers, be careful and double-check that the same drive name is not reused between currently active providers.