DirectoryDeleteJunction Method (KernelTransaction, String, Boolean) |
[AlphaFS] Deletes an NTFS directory junction.
Remarks Only the directory junction is removed, not the target.
Namespace:
Alphaleonis.Win32.Filesystem
Assembly:
AlphaFS (in AlphaFS.dll) Version: 2.2
Syntax public static void DeleteJunction(
KernelTransaction transaction,
string junctionPath,
bool removeDirectory
)
Public Shared Sub DeleteJunction (
transaction As KernelTransaction,
junctionPath As String,
removeDirectory As Boolean
)
public:
static void DeleteJunction(
KernelTransaction^ transaction,
String^ junctionPath,
bool removeDirectory
)
static member DeleteJunction :
transaction : KernelTransaction *
junctionPath : string *
removeDirectory : bool -> unit
Parameters
- transaction
- Type: Alphaleonis.Win32.FilesystemKernelTransaction
The transaction. - junctionPath
- Type: SystemString
The path of the junction point to remove. - removeDirectory
- Type: SystemBoolean
When , also removes the directory and all its contents.
Return Value
Type:
A
DirectoryInfo instance referencing the junction point.
Exceptions See Also