Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

VFileInfo.Replace Method

Namespace: Rebex.IO
Assembly: Rebex.FileSystem.dll (version 7.0.9147)

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 destinationFileName should be stored. Can be null - backup of the destinationFileName IS NOT made.

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 destinationFileName should be stored. Can be null - backup of the destinationFileName IS NOT made.

Boolean ignoreMetadataErrors

The argument is ignored.

Returns
Type Description
VFileInfo
In This Article
  • Replace(String, String)
  • Replace(String, String, Boolean)
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies