MonobjcMonobjc Documented Class Library
CreateSymbolicLinkAtPathWithDestinationPathError Method (path, destPath, error)
NamespacesMonobjc.FoundationNSFileManagerCreateSymbolicLinkAtPathWithDestinationPathError(NSString, NSString, NSError%)

Creates a symbolic link identified by a given path that refers to a given location.

Original signature is '- (BOOL)createSymbolicLinkAtPath:(NSString *)path withDestinationPath:(NSString *)destPath error:(NSError **)error'

Available in Mac OS X v10.5 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual bool CreateSymbolicLinkAtPathWithDestinationPathError(
	NSString path,
	NSString destPath,
	out NSError error
)
Public Overridable Function CreateSymbolicLinkAtPathWithDestinationPathError ( _
	path As NSString, _
	destPath As NSString, _
	<OutAttribute> ByRef error As NSError _
) As Boolean
public:
virtual bool CreateSymbolicLinkAtPathWithDestinationPathError(
	NSString^ path, 
	NSString^ destPath, 
	[OutAttribute] NSError^% error
)
Parameters
path (NSString)
The path for a symbolic link.
destPath (NSString)
The path to which path should refer.
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 operation is successful, otherwise NO. Returns NO if a file, directory, or symbolic link identical to path already exists.
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)