SPFile.CopyTo method

Copies the file to the destination URL.

Overload list

  Name Description
Public method CopyTo(String) Copies the file to the destination URL but does not overwrite an existing file of the same name.
Public method CopyTo(String, Boolean) Copies the file to the destination URL and optionally overwrites an existing file of the same name.

Top

See also

Reference

SPFile class

SPFile members

Microsoft.SharePoint namespace