DirectoryCreateSymbolicLinkTransacted Method (KernelTransaction, String, String) |
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
public static void CreateSymbolicLinkTransacted( KernelTransaction transaction, string symlinkDirectoryName, string targetDirectoryName )
Exception | Condition |
---|---|
ArgumentException | |
ArgumentNullException | |
IOException | |
PlatformNotSupportedException | The operating system is older than Windows Vista. |