Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ ReplaceFile()

static void System.IO.FileSystem.ReplaceFile ( string sourceFullPath,
string destFullPath,
string destBackupFullPath,
bool ignoreMetadataErrors )
inlinestatic

Definition at line 252 of file FileSystem.cs.

253 {
254 int dwReplaceFlags = (ignoreMetadataErrors ? 2 : 0);
256 {
257 throw Win32Marshal.GetExceptionForWin32Error(Marshal.GetLastWin32Error());
258 }
259 }
static bool ReplaceFile(string replacedFileName, string replacementFileName, string backupFileName, int dwReplaceFlags, IntPtr lpExclude, IntPtr lpReserved)
Definition Interop.cs:1018

References System.IO.Win32Marshal.GetExceptionForWin32Error(), System.Runtime.InteropServices.Marshal.GetLastWin32Error(), Interop.Kernel32.ReplaceFile(), and System.IntPtr.Zero.

Referenced by System.IO.FileInfo.Replace(), and System.IO.File.Replace().