file_info xtd::io::file_info::replace | ( | const xtd::string & | destination_file_name, |
const xtd::string & | destination_backup_file_name | ||
) |
Replaces the contents of a specified file with the file described by the current xtd::io::file_info object, deleting the original file, and creating a backup of the replaced file.
destination_file_name | The name of a file to replace with the current file. |
destination_backup_file_name | The name of a file with which to create a backup of the file described by the destFileName parameter. |
xtd::argument_exception | The path described by the destFileName parameter was not of a legal form. -or- The path described by the destBackupFileName parameter was not of a legal form. |
xtd::io::file_not_found_exception | The file described by the current xtd::io::file_info object could not be found. -or- The file described by the destinationFileName parameter could not be found. |
xtd::platform_not_supported_exception | The current operating system is not Microsoft Windows NT or later. |