Mono Class Library: Mono.Posix.Syscall Overview | Members

Mono.Posix.Syscall.link Method

Create a hard link from oldPath to newPath. [Edit]

public static int link (string oldPath, string newPath)

See Also

Mono.Unix.Native.Syscall.link

Parameters

oldPath
a string [Edit]
newPath
a string [Edit]

Returns

a int [Edit]

Remarks

This member is obsolete. Please use Mono.Unix.Native.Syscall.link instead.

There is no way to distinguish the links. On success, zero is returned. On error, -1 is returned and System.Runtime.InteropServices.Marshal.GetLastWin32Error is set.

[Edit]

Requirements

Namespace: Mono.Posix
Assembly: Mono.Posix (in Mono.Posix.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0