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.
[Foundation.Export("replaceItemAtURL:withItemAtURL:backupItemName:options:resultingItemURL:error:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual bool Replace(Foundation.NSUrl originalItem, Foundation.NSUrl newItem, string? backupItemName, Foundation.NSFileManagerItemReplacementOptions options, out Foundation.NSUrl resultingURL, out Foundation.NSError error);
[<Foundation.Export("replaceItemAtURL:withItemAtURL:backupItemName:options:resultingItemURL:error:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member Replace : Foundation.NSUrl * Foundation.NSUrl * string * Foundation.NSFileManagerItemReplacementOptions * NSUrl * NSError -> bool
override this.Replace : Foundation.NSUrl * Foundation.NSUrl * string * Foundation.NSFileManagerItemReplacementOptions * NSUrl * NSError -> bool
Parameters
- originalItem
- NSUrl
- newItem
- NSUrl
- backupItemName
- String
- resultingURL
- NSUrl
- error
- NSError
Returns
- Attributes