## FileInfo::Replace(const String\&, const String\&) method


Sostituisce il contenuto di un file di destinazione specificato con il file rappresentato dall'oggetto [FileInfo](../) corrente e crea una copia di backup del file sostituito.

```cpp
FileInfoPtr System::IO::FileInfo::Replace(const String &destinationFileName, const String &destinationBackupFileName)
```


| Parametro | Tipo | Descrizione |
| --- | --- | --- |
| destinationFileName | const String\& | Un nome del file da sostituire |
| destinationBackupFileName | const String\& | Un nome del file di backup |

### ReturnValue

Un oggetto FileInfor che rappresenta il file a cui punta **destinationFileName**

## Vedi anche

* Typedef [FileInfoPtr](../../../system/fileinfoptr/)
* Class [String](../../../system/string/)
* Class [FileInfo](../)
* Namespace [System::IO](../../)
* Library [Aspose.Page for C++](../../../)
## FileInfo::Replace(const String\&, const String\&, bool) method


Sostituisce il contenuto di un file di destinazione specificato con il file rappresentato dall'oggetto [FileInfo](../) corrente e crea una copia di backup del file sostituito.

```cpp
FileInfoPtr System::IO::FileInfo::Replace(const String &destinationFileName, const String &destinationBackupFileName, bool ignoreMetadataErrors)
```


| Parametro | Tipo | Descrizione |
| --- | --- | --- |
| destinationFileName | const String\& | Un nome del file da sostituire |
| destinationBackupFileName | const String\& | Un nome del file di backup |
| ignoreMetadataErrors | bool | Specifica se gli errori di unione dal file sostituito al file di sostituzione devono essere ignorati (true) o no (false) |

### ReturnValue

Un oggetto FileInfor che rappresenta il file a cui punta **destinationFileName**

## Vedi anche

* Typedef [FileInfoPtr](../../../system/fileinfoptr/)
* Class [String](../../../system/string/)
* Class [FileInfo](../)
* Namespace [System::IO](../../)
* Library [Aspose.Page for C++](../../../)
