NSFileManager.Replace Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Attempts to replace the specified originalItem with the newItem, in a manner that does not lose data, returning success or faiure and setting the error parameter.
[Foundation.Export("replaceItemAtURL:withItemAtURL:backupItemName:options:resultingItemURL:error:")]
public virtual bool Replace (Foundation.NSUrl originalItem, Foundation.NSUrl newItem, string backupItemName, Foundation.NSFileManagerItemReplacementOptions options, out Foundation.NSUrl resultingURL, out Foundation.NSError error);
abstract member Replace : Foundation.NSUrl * Foundation.NSUrl * string * Foundation.NSFileManagerItemReplacementOptions * * -> bool
override this.Replace : Foundation.NSUrl * Foundation.NSUrl * string * Foundation.NSFileManagerItemReplacementOptions * * -> bool
Parameters
- originalItem
- NSUrl
- newItem
- NSUrl
- resultingURL
- NSUrl
- error
- NSError
Returns
- Attributes