Muokkaa

Jaa


File.Copy Method

Definition

Overloads

Copy(String, String)
Copy(String, String, Boolean)

Copy(String, String)

public:
 static void Copy(System::String ^ sourceFileName, System::String ^ destFileName);
public static void Copy (string sourceFileName, string destFileName);
static member Copy : string * string -> unit
Public Shared Sub Copy (sourceFileName As String, destFileName As String)

Parameters

sourceFileName
String
destFileName
String

Applies to

Copy(String, String, Boolean)

public:
 static void Copy(System::String ^ sourceFileName, System::String ^ destFileName, bool overwrite);
public static void Copy (string sourceFileName, string destFileName, bool overwrite);
static member Copy : string * string * bool -> unit
Public Shared Sub Copy (sourceFileName As String, destFileName As String, overwrite As Boolean)

Parameters

sourceFileName
String
destFileName
String
overwrite
Boolean

Applies to