MultipartFormDataStreamProvider.GetStream Method
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
This body part stream provider examines the headers provided by the MIME multipart parser and decides whether it should return a file stream or a memory stream for the body part to be written to.
Namespace: System.Net.Http
Assembly: System.Net.Http.Formatting (in System.Net.Http.Formatting.dll)
Syntax
'Declaration
Public Function GetStream ( _
headers As HttpContentHeaders _
) As Stream
public Stream GetStream(
HttpContentHeaders headers
)
public:
virtual Stream^ GetStream(
HttpContentHeaders^ headers
) sealed
abstract GetStream :
headers:HttpContentHeaders -> Stream
override GetStream :
headers:HttpContentHeaders -> Stream
public final function GetStream(
headers : HttpContentHeaders
) : Stream
Parameters
- headers
Type: System.Net.Http.Headers.HttpContentHeaders
Header fields describing the body part
Return Value
Type: System.IO.Stream
The Stream instance where the message body part is written to.
Implements
IMultipartStreamProvider.GetStream(HttpContentHeaders)
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.