File.Copy Method
Copies an existing file to a new file.
Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)
Syntax
public static void Copy (
stringsourceFileName,
stringdestFileName,
booloverwrite
)
Parameters
- sourceFileName
The file to copy. - destFileName
The name of the destination file. This cannot be a directory. - overwrite
true if the destination file can be overwritten; otherwise, false.
Version Information
Available in the .NET Micro Framework versions 3.0, 4.0, and 4.1.