VFileInfo.Replace Method
Namespace: Rebex.IO
Assembly: Rebex.FileSystem.dll (version 7.0.9313)
Replace(String, String)
Method copies content of the file to the destinationFileName
and deletes this file.
In other words, content of the destinationFileName is replaced by the content of this file.
When the destinationBackupFileName is not null then the original (to be replaced) content of the destinationFileName
is stored in the destinationBackupFileName.
Declaration
public VFileInfo Replace(string destinationFileName, string destinationBackupFileName)
Parameters
| Type | Name | Description |
|---|---|---|
| String | destinationFileName | The path of the destination file name. |
| String | destinationBackupFileName | The path of the backup file name where the original content of the |
Returns
| Type | Description |
|---|---|
| VFileInfo |
Replace(String, String, Boolean)
Method copies content of the file to the destinationFileName
and deletes this file.
In other words, content of the destinationFileName is replaced by the content of this file.
When the destinationBackupFileName is not null then the original (to be replaced) content of the destinationFileName
is stored in the destinationBackupFileName.
Declaration
public VFileInfo Replace(string destinationFileName, string destinationBackupFileName, bool ignoreMetadataErrors)
Parameters
| Type | Name | Description |
|---|---|---|
| String | destinationFileName | The path of the destination file name. |
| String | destinationBackupFileName | The path of the backup file name where the original content of the |
| Boolean | ignoreMetadataErrors | The argument is ignored. |
Returns
| Type | Description |
|---|---|
| VFileInfo |