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.

AWSStreamContent is a wrapper for StreamContent class in the System.Net.Http library.The wrapper has been added so as to remove System.Net.Http dependencies from the Services and migrate it to a Core level dependecy only. This avoids version clashes when a service and the Core depends on different versions of the System.Net.Http library. This is a Service level utility method

Inheritance Hierarchy


Namespace: Amazon.Util
Assembly: AWSSDK.Core.dll
Version: 3.x.y.z


public class AWSStreamContent

The AWSStreamContent type exposes the following members


Public Method AWSStreamContent(Stream)

Wrapper for StreamContent constructor for stream content

Public Method AWSStreamContent(Stream, int)

Wrapper for StreamContent constructor for stream content and bufferSize



Asynchronous operations (methods ending with Async) in the table below are for .NET 4.5 or higher. For .NET 3.5 the SDK follows the standard naming convention of BeginMethodName and EndMethodName to indicate asynchronous operations - these method pairs are not shown in the table below.

Public Method AddHttpContentHeader(string, string)

Wrapper to allow Services to add StreamContent Headers

Public Method Dispose()

Wrapper for StreamContent Dispose.

Public Method RemoveHttpContentHeader(string)

Wrapper to allow Services to remove StreamContent Headers

Version Information

Supported in: 8.0 and newer, Core 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5 and newer