FileInfoCopyTo(String, Boolean) Method |
Copies the specified file to a new file location with the option to overwrite.
Namespace: Crestron.SimplSharp.CrestronIOAssembly: SimplSharpHelperInterface (in SimplSharpHelperInterface.dll) Version: 2.21.121
Syntaxpublic FileInfo CopyTo(
string destFileName,
bool overwrite
)
Parameters
- destFileName String
- Destination to copy the file to.
- overwrite Boolean
- True to overwrite an existing file.
Return Value
FileInfoA FileInfo instance of the newly created file.
ExceptionsVersion Information
.NET
Supported in: 6.0
.NET Compact Framework
Supported in: 3.5
See Also