FileCreateHardlinkTransacted Method (KernelTransaction, String, String) |
[AlphaFS] Establishes a hard link (similar to CMD command: "MKLINK /H") between an existing file and a new file as a transacted operation. This function is only supported on the NTFS file system, and only for files, not directories.
Namespace:
Alphaleonis.Win32.Filesystem
Assembly:
AlphaFS (in AlphaFS.dll) Version: 2.2
Syntax public static void CreateHardlinkTransacted(
KernelTransaction transaction,
string fileName,
string existingFileName
)
Public Shared Sub CreateHardlinkTransacted (
transaction As KernelTransaction,
fileName As String,
existingFileName As String
)
public:
static void CreateHardlinkTransacted(
KernelTransaction^ transaction,
String^ fileName,
String^ existingFileName
)
static member CreateHardlinkTransacted :
transaction : KernelTransaction *
fileName : string *
existingFileName : string -> unit
Parameters
- transaction
- Type: Alphaleonis.Win32.FilesystemKernelTransaction
The transaction. - fileName
- Type: SystemString
The name of the new file. This parameter cannot specify the name of a directory. - existingFileName
- Type: SystemString
The name of the existing file. This parameter cannot specify the name of a directory.
Exceptions See Also