FileCreateHardlink Method (KernelTransaction, String, String, PathFormat) |
[AlphaFS] Establishes a hard link between an existing file and a new file. This function is only supported on the NTFS file system,
and only for files, not directories.
Namespace: Alphaleonis.Win32.FilesystemAssembly: AlphaFS (in AlphaFS.dll) Version: 2.0
Syntax public static void CreateHardlink(
KernelTransaction transaction,
string fileName,
string existingFileName,
PathFormat pathFormat
)
Public Shared Sub CreateHardlink (
transaction As KernelTransaction,
fileName As String,
existingFileName As String,
pathFormat As PathFormat
)
public:
static void CreateHardlink(
KernelTransaction^ transaction,
String^ fileName,
String^ existingFileName,
PathFormat pathFormat
)
static member CreateHardlink :
transaction : KernelTransaction *
fileName : string *
existingFileName : string *
pathFormat : PathFormat -> 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. - pathFormat
- Type: Alphaleonis.Win32.FilesystemPathFormat
Indicates the format of the path parameter(s).
See Also