StreamContent Constructor (Stream^, Int32)

.NET Framework (current version)
 

Creates a new instance of the StreamContent class.

Namespace:   System.Net.Http
Assembly:  System.Net.Http (in System.Net.Http.dll)

public:
StreamContent(
	Stream^ content,
	int bufferSize
)

Parameters

content
Type: System.IO::Stream^

The content used to initialize the StreamContent.

bufferSize
Type: System::Int32

The size, in bytes, of the buffer for the StreamContent.

Exception Condition
ArgumentNullException

The content was null.

ArgumentOutOfRangeException

The bufferSize was less than or equal to zero.

Universal Windows Platform
Available since 8
.NET Framework
Available since 4.5
Portable Class Library
Supported in: portable .NET platforms
Windows Phone
Available since 8.1
Return to top
Show: