DirectoryDelete Method (KernelTransaction, String, PathFormat) |
Deletes an empty directory from a specified path.
Namespace: Alphaleonis.Win32.FilesystemAssembly: AlphaFS (in AlphaFS.dll) Version: 2.0
Syntax public static void Delete(
KernelTransaction transaction,
string path,
PathFormat pathFormat
)
Public Shared Sub Delete (
transaction As KernelTransaction,
path As String,
pathFormat As PathFormat
)
public:
static void Delete(
KernelTransaction^ transaction,
String^ path,
PathFormat pathFormat
)
static member Delete :
transaction : KernelTransaction *
path : string *
pathFormat : PathFormat -> unit
Parameters
- transaction
- Type: Alphaleonis.Win32.FilesystemKernelTransaction
The transaction. - path
- Type: SystemString
The name of the empty directory to remove. This directory must be writable and empty. - pathFormat
- Type: Alphaleonis.Win32.FilesystemPathFormat
Indicates the format of the path parameter(s).
Exceptions Remarks MSDN: .NET 4+ Trailing spaces are removed from the end of the path parameter before deleting the directory.
See Also