DirectoryCreateSymbolicLinkTransacted Method (KernelTransaction, String, String, PathFormat) |
[AlphaFS] Creates a symbolic link (similar to CMD command: "MKLINK /D") to a directory as a transacted operation.
Remarks Symbolic links can point to a non-existent target.
When creating a symbolic link, the operating system does not check to see if the target exists.
Symbolic links are reparse points.
There is a maximum of 31 reparse points (and therefore symbolic links) allowed in a particular path.
See CreateSymbolicLink to run this method in an elevated state.
Namespace:
Alphaleonis.Win32.Filesystem
Assembly:
AlphaFS (in AlphaFS.dll) Version: 2.2
Syntax public static void CreateSymbolicLinkTransacted(
KernelTransaction transaction,
string symlinkDirectoryName,
string targetDirectoryName,
PathFormat pathFormat
)
Public Shared Sub CreateSymbolicLinkTransacted (
transaction As KernelTransaction,
symlinkDirectoryName As String,
targetDirectoryName As String,
pathFormat As PathFormat
)
public:
static void CreateSymbolicLinkTransacted(
KernelTransaction^ transaction,
String^ symlinkDirectoryName,
String^ targetDirectoryName,
PathFormat pathFormat
)
static member CreateSymbolicLinkTransacted :
transaction : KernelTransaction *
symlinkDirectoryName : string *
targetDirectoryName : string *
pathFormat : PathFormat -> unit
Parameters
- transaction
- Type: Alphaleonis.Win32.FilesystemKernelTransaction
The transaction. - symlinkDirectoryName
- Type: SystemString
The name of the target for the symbolic link to be created. - targetDirectoryName
- Type: SystemString
The symbolic link to be created. - pathFormat
- Type: Alphaleonis.Win32.FilesystemPathFormat
Indicates the format of the path parameter(s).
Exceptions See Also