DirectoryDeleteJunction Method (String, Boolean, PathFormat) |
[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(
string junctionPath,
bool removeDirectory,
PathFormat pathFormat
)
Public Shared Sub DeleteJunction (
junctionPath As String,
removeDirectory As Boolean,
pathFormat As PathFormat
)
public:
static void DeleteJunction(
String^ junctionPath,
bool removeDirectory,
PathFormat pathFormat
)
static member DeleteJunction :
junctionPath : string *
removeDirectory : bool *
pathFormat : PathFormat -> unit
Parameters
- junctionPath
- Type: SystemString
The path of the junction point to remove. - removeDirectory
- Type: SystemBoolean
When , also removes the directory and all its contents. - pathFormat
- Type: Alphaleonis.Win32.FilesystemPathFormat
Indicates the format of the path parameter(s).
Return Value
Type:
A
DirectoryInfo instance referencing the junction point.
Exceptions See Also