System.IO.IsolatedStorage.IsolatedStorageFile.CopyFile Method

Copies an existing file to a new file.

Syntax

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

Parameters

sourceFileName
The name of the file to copy.
destinationFileName
The name of the destination file. This cannot be a directory or an existing file.

Remarks

sourceFileName and destinationFileName must specify different file names. Use the IsolatedStorageFile.CopyFile(string, string, bool) method overload to overwrite an existing file.

Requirements

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