AWS SDK Version 3 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.

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

Namespace: Amazon.S3.IO
Assembly: AWSSDK.S3.dll
Version: 3.x.y.z

Syntax

C#
public Stream OpenWrite()
Return Value
Type: 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