System.IO.IsolatedStorage.IsolatedStorageFile.CopyFile Method

Copies an existing file to a new file, and optionally overwrites an existing file.

Syntax

[System.Runtime.InteropServices.ComVisible(false)]
public void CopyFile (string sourceFileName, string destinationFileName, bool overwrite)

Parameters

sourceFileName
The name of the file to copy.
destinationFileName
The name of the destination file. This cannot be a directory.
overwrite
true if the destination file can be overwritten; otherwise, false.

Remarks

sourceFileName and destinationFileName can have the same file name if overwrite is true.

Requirements

Namespace: System.IO.IsolatedStorage
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 4.0.0.0