FileUtilities.Replace(String,String,Boolean,Boolean) - метод Смотри также Terrasoft.Common - пространство имен > FileUtilities - класс > Replace - метод : Replace(String,String,Boolean,Boolean) - метод C#
- sourceFileName
- The name of the replaced file.
- destinationFileName
- The name of the replacing file.
- deleteSourceFile
true
, if replaced file must be deleted.
- forceReplace
true
, if the replacement is done only for files with the "Read-only" attribute.
Glossary Item Box
public static bool Replace( string sourceFileName, string destinationFileName, bool deleteSourceFile, bool forceReplace )
Параметры
- sourceFileName
- The name of the replaced file.
- destinationFileName
- The name of the replacing file.
- deleteSourceFile
true
, if replaced file must be deleted.- forceReplace
true
, if the replacement is done only for files with the "Read-only" attribute.
Тип возвращаемого значения
true
, if replacement has been successful; false
if the file to replace does not exist.