StreamContent Constructor (Stream^, Int32)
.NET Framework (current version)
Creates a new instance of the StreamContent class.
Assembly: System.Net.Http (in System.Net.Http.dll)
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
Available since 8
.NET Framework
Available since 4.5
Portable Class Library
Supported in: portable .NET platforms
Windows Phone
Available since 8.1
Show: