AWS SDK for .NET Documentation
CopyTo Method (file, overwrite)
AmazonAmazon.S3.IOS3FileInfoCopyTo(S3FileInfo, Boolean) Did this page help you?   Yes   No    Tell us about it...
Copies this file to the location indicated by the passed in S3FileInfo. If the file already exists in S3 and overwrite is set to false than an ArgumentException is thrown.
Declaration Syntax
C#
public S3FileInfo CopyTo(
	S3FileInfo file,
	bool overwrite
)
Parameters
file (S3FileInfo)
The target location to copy this file to.
overwrite (Boolean)
Determines whether the file can be overwritten.
Return Value
S3FileInfo of the newly copied file.
Exceptions
ExceptionCondition
IOExceptionIf the file already exists in S3 and overwrite is set to false.
WebException
AmazonS3Exception

Assembly: AWSSDK (Module: AWSSDK) Version: 1.5.60.0 (1.5.60.0)