MonobjcMonobjc Documented Class Library
LinkItemAtPathToPathError Method (srcPath, dstPath, error)
NamespacesMonobjc.FoundationNSFileManagerLinkItemAtPathToPathError(NSString, NSString, NSError%)

Creates a hard link from a source to a destination identified by a path.

Original signature is '- (BOOL)linkItemAtPath:(NSString *)srcPath toPath:(NSString *)dstPath error:(NSError **)error'

Available in Mac OS X v10.5 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual bool LinkItemAtPathToPathError(
	NSString srcPath,
	NSString dstPath,
	out NSError error
)
Public Overridable Function LinkItemAtPathToPathError ( _
	srcPath As NSString, _
	dstPath As NSString, _
	<OutAttribute> ByRef error As NSError _
) As Boolean
public:
virtual bool LinkItemAtPathToPathError(
	NSString^ srcPath, 
	NSString^ dstPath, 
	[OutAttribute] NSError^% error
)
Parameters
srcPath (NSString)
A path that identifies a source file.
dstPath (NSString)
A path that identifies a destination file or directory on the same filesystem as srcPath.
error (NSError%)
If an error occurs, upon return contains an NSError object that describes the problem. Pass NULL if you do not want error information.
Return Value
YES if the link operation is successful. If the operation is not successful, but the delegate returns YES from the fileManager:shouldProceedAfterError:linkingItemAtPath:toPath: message, linkItemAtPath:toPath:error: also returns YES. Otherwise this method returns NO.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc.Foundation (Module: Monobjc.Foundation)