Bearbeiten

Freigeben über


NSFileManager.Replace Method

Definition

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
backupItemName
String

To be added.

This parameter can be null.

resultingURL
NSUrl
error
NSError

Returns

Attributes

Applies to