MonobjcMonobjc Documented Class Library
LinkPathToPathHandler Method (source, destination, handler)
NamespacesMonobjc.FoundationNSFileManagerLinkPathToPathHandler(NSString, NSString, Id)

Creates a link from a source to a destination. (Deprecated in Mac OS X v10.5. Use linkItemAtPath:toPath:error: instead.)

Original signature is '- (BOOL)linkPath:(NSString *)source toPath:(NSString *)destination handler:(id)handler'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
[ObsoleteAttribute("Deprecated in Mac OS X v10.5. Use linkItemAtPath:toPath:error: instead.")]
public virtual bool LinkPathToPathHandler(
	NSString source,
	NSString destination,
	Id handler
)
<ObsoleteAttribute("Deprecated in Mac OS X v10.5. Use linkItemAtPath:toPath:error: instead.")> _
Public Overridable Function LinkPathToPathHandler ( _
	source As NSString, _
	destination As NSString, _
	handler As Id _
) As Boolean
[ObsoleteAttribute(L"Deprecated in Mac OS X v10.5. Use linkItemAtPath:toPath:error: instead.")]
public:
virtual bool LinkPathToPathHandler(
	NSString^ source, 
	NSString^ destination, 
	Id^ handler
)
Parameters
source (NSString)
A path that identifies a source file or directory.
destination (NSString)
A path that identifies a destination file or directory.
handler (Id)
An object that responds to the callback messages fileManager:willProcessPath: and fileManager:shouldProceedAfterError:. You can specify nil for handler; if you do so and an error occurs, the method automatically returns NO.
Return Value
YES if the link operation is successful. If the operation is not successful, but the handler method fileManager:shouldProceedAfterError: returns YES, also returns YES. Otherwise 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)