MonobjcMonobjc Documented Class Library
LinkItemAtURLToURLError Method (srcURL, dstURL, error)
NamespacesMonobjc.FoundationNSFileManagerLinkItemAtURLToURLError(NSURL, NSURL, NSError%)

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

Original signature is '- (BOOL)linkItemAtURL:(NSURL *)srcURL toURL:(NSURL *)dstURL error:(NSError **)error'

Available in Mac OS X v10.6 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual bool LinkItemAtURLToURLError(
	NSURL srcURL,
	NSURL dstURL,
	out NSError error
)
Public Overridable Function LinkItemAtURLToURLError ( _
	srcURL As NSURL, _
	dstURL As NSURL, _
	<OutAttribute> ByRef error As NSError _
) As Boolean
public:
virtual bool LinkItemAtURLToURLError(
	NSURL^ srcURL, 
	NSURL^ dstURL, 
	[OutAttribute] NSError^% error
)
Parameters
srcURL (NSURL)
A URL that identifies a source file.
dstURL (NSURL)
A URL that identifies a destination file or directory on the same filesystem as srcURL.
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:linkingItemAtURL:toURL: message, linkItemAtURL:toURL: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)

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