AWS SDK Version 2 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

.NET Framework 4.5
 
Returns a Stream for writing to S3. If the file already exists it will be overwritten.

Namespace: Amazon.S3.IO
Assembly: AWSSDK.dll
Version: (assembly version)

Syntax

C#
public Stream OpenWrite()
Return Value
Type: System.IO.Stream
Stream to write from.

Exceptions

ExceptionCondition
System.IO.IOException The file is already open.
System.Net.WebException
AmazonS3Exception

Remarks

The content will not be written to S3 until the Stream is closed.

Version Information

.NET Framework:
Supported in: 4.5, 4.0, 3.5