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

Moves the directory or file specified by a given URL to a different location in the file system identified by another URL.

Original signature is '- (BOOL)moveItemAtURL:(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 MoveItemAtURLToURLError(
	NSURL srcURL,
	NSURL dstURL,
	out NSError error
)
Public Overridable Function MoveItemAtURLToURLError ( _
	srcURL As NSURL, _
	dstURL As NSURL, _
	<OutAttribute> ByRef error As NSError _
) As Boolean
public:
virtual bool MoveItemAtURLToURLError(
	NSURL^ srcURL, 
	NSURL^ dstURL, 
	[OutAttribute] NSError^% error
)
Parameters
srcURL (NSURL)
The URL of a file or directory to move. srcURL must exist.
dstURL (NSURL)
The URL to which the file or directory at srcURL is to be moved. destination must not yet exist. The destination URL must end in a directory name or filename; there is no implicit adoption of the source name.
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 move operation is successful. If the operation is not successful, but the delegate returns YES from the fileManager:shouldProceedAfterError:movingItemAtURL:toURL: message, moveItemAtURL: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)