System.IO.File.Replace C# (CSharp) Méthode

Replace() public static méthode

public static Replace ( string sourceFileName, string destinationFileName, string destinationBackupFileName, bool ignoreMetadataErrors ) : void
sourceFileName string
destinationFileName string
destinationBackupFileName string
ignoreMetadataErrors bool
Résultat void
        public static void Replace(string sourceFileName, string destinationFileName, string destinationBackupFileName, bool ignoreMetadataErrors) { }
        public static void SetAttributes(string path, System.IO.FileAttributes fileAttributes) { }

Same methods

File::Replace ( String sourceFileName, String destinationFileName, String destinationBackupFileName ) : void
File::Replace ( String sourceFileName, String destinationFileName, String destinationBackupFileName, bool ignoreMetadataErrors ) : void
File::Replace ( string sourceFileName, string destinationFileName, string destinationBackupFileName ) : void

Usage Example

Exemple #1
0
 public FileInfo Replace(String destinationFileName, String destinationBackupFileName, bool ignoreMetadataErrors)
 {
     File.Replace(FullPath, destinationFileName, destinationBackupFileName, ignoreMetadataErrors);
     return(new FileInfo(destinationFileName));
 }
All Usage Examples Of System.IO.File::Replace