Moves the file to a a new location in S3.
Namespace: Amazon.S3.IO
Assembly: AWSSDK.dll
Version: 2.0.0.3
Syntax
public S3FileInfo MoveTo(
String bucket,
String key
)
Parameters
- bucket
-
Type: System.String
Bucket to move the file to.
- key
-
Type: System.String
Object key to move the file to.
Exceptions
| Exception | Condition |
|---|---|
| System.IO.IOException | If the file already exists in S3. |
| System.ArgumentException | |
| System.Net.WebException | |
| Amazon.S3.AmazonS3Exception |
Version Information
.NET Framework:
Supported in: 4.5, 4.0, 3.5