FileInfo.CopyTo Method

Include Protected Members
Include Inherited Members

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Copies an existing file to a new file.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List

Name Description
CopyTo(String) Copies an existing file to a new file, disallowing the overwriting of an existing file.
CopyTo(String, Boolean) Copies an existing file to a new file, allowing the overwriting of an existing file.

Top

See Also

Reference

FileInfo Class

FileInfo Members

System.IO Namespace