Click or drag to resize

FileCreateSymbolicLinkTransacted Method (KernelTransaction, String, String, SymbolicLinkTarget, PathFormat)

Note: This API is now obsolete.

[AlphaFS] Creates a symbolic link (similar to CMD command: "MKLINK") to a file as a transacted operation.
Remarks
See CreateSymbolicLink to run this method in an elevated state.

Namespace:  Alphaleonis.Win32.Filesystem
Assembly:  AlphaFS (in AlphaFS.dll) Version: 2.2
Syntax
[ObsoleteAttribute("Methods with SymbolicLinkTarget parameter are obsolete.")]
public static void CreateSymbolicLinkTransacted(
	KernelTransaction transaction,
	string symlinkFileName,
	string targetFileName,
	SymbolicLinkTarget targetType,
	PathFormat pathFormat
)

Parameters

transaction
Type: Alphaleonis.Win32.FilesystemKernelTransaction
The transaction.
symlinkFileName
Type: SystemString
The name of the target for the symbolic link to be created.
targetFileName
Type: SystemString
The symbolic link to be created.
targetType
Type: Alphaleonis.Win32.FilesystemSymbolicLinkTarget
Indicates whether the link target, targetFileName, is a file or directory.
pathFormat
Type: Alphaleonis.Win32.FilesystemPathFormat
Indicates the format of the path parameter(s).
Exceptions
ExceptionCondition
ArgumentException
ArgumentNullException
PlatformNotSupportedExceptionThe operating system is older than Windows Vista.
See Also