DirectoryDelete Method (KernelTransaction, String, Boolean, Boolean, PathFormat) |
[AlphaFS] Deletes the specified directory and, if indicated, any subdirectories in the directory.
Namespace: Alphaleonis.Win32.FilesystemAssembly: AlphaFS (in AlphaFS.dll) Version: 2.0
Syntax public static void Delete(
KernelTransaction transaction,
string path,
bool recursive,
bool ignoreReadOnly,
PathFormat pathFormat
)
Public Shared Sub Delete (
transaction As KernelTransaction,
path As String,
recursive As Boolean,
ignoreReadOnly As Boolean,
pathFormat As PathFormat
)
public:
static void Delete(
KernelTransaction^ transaction,
String^ path,
bool recursive,
bool ignoreReadOnly,
PathFormat pathFormat
)
static member Delete :
transaction : KernelTransaction *
path : string *
recursive : bool *
ignoreReadOnly : bool *
pathFormat : PathFormat -> unit
Parameters
- transaction
- Type: Alphaleonis.Win32.FilesystemKernelTransaction
The transaction. - path
- Type: SystemString
The name of the directory to remove. - recursive
- Type: SystemBoolean
to remove directories, subdirectories, and files in path. otherwise. - ignoreReadOnly
- Type: SystemBoolean
overrides read only FileAttributes of files and directories. - 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