VolumeDeleteDosDevice Method (String, String, DosDeviceAttributes, Boolean) |
Deletes an MS-DOS device name.
Namespace: Alphaleonis.Win32.FilesystemAssembly: AlphaFS (in AlphaFS.dll) Version: 2.0
Syntax public static void DeleteDosDevice(
string deviceName,
string targetPath,
DosDeviceAttributes deviceAttributes,
bool exactMatch
)
Public Shared Sub DeleteDosDevice (
deviceName As String,
targetPath As String,
deviceAttributes As DosDeviceAttributes,
exactMatch As Boolean
)
public:
static void DeleteDosDevice(
String^ deviceName,
String^ targetPath,
DosDeviceAttributes deviceAttributes,
bool exactMatch
)
static member DeleteDosDevice :
deviceName : string *
targetPath : string *
deviceAttributes : DosDeviceAttributes *
exactMatch : bool -> unit
Parameters
- deviceName
- Type: SystemString
An MS-DOS device name string specifying the device to delete. - targetPath
- Type: SystemString
A pointer to a path string that will implement this device. The string is an MS-DOS path string unless the
RawTargetPath flag is specified, in which case this string is a path string.
- deviceAttributes
- Type: Alphaleonis.Win32.FilesystemDosDeviceAttributes
The controllable aspects of the DefineDosDevice function DosDeviceAttributes flags which will be combined with the
default.
- exactMatch
- Type: SystemBoolean
Only delete MS-DOS device on an exact name match. If exactMatch is ,
targetPath must be the same path used to create the mapping.
See Also