MultipartFormDataStreamProvider.GetStream Method
This member overrides MultipartFileStreamProvider.GetStream(HttpContent, HttpContentHeaders).
Namespace: System.Net.Http
Assembly: System.Net.Http.Formatting (in System.Net.Http.Formatting.dll)
Syntax
'Declaration
Public Overrides Function GetStream ( _
parent As HttpContent, _
headers As HttpContentHeaders _
) As Stream
'Usage
Dim instance As MultipartFormDataStreamProvider
Dim parent As HttpContent
Dim headers As HttpContentHeaders
Dim returnValue As Stream
returnValue = instance.GetStream(parent, _
headers)
public override Stream GetStream(
HttpContent parent,
HttpContentHeaders headers
)
public:
virtual Stream^ GetStream(
HttpContent^ parent,
HttpContentHeaders^ headers
) override
abstract GetStream :
parent:HttpContent *
headers:HttpContentHeaders -> Stream
override GetStream :
parent:HttpContent *
headers:HttpContentHeaders -> Stream
public override function GetStream(
parent : HttpContent,
headers : HttpContentHeaders
) : Stream
Parameters
parent
Type: HttpContentThe HTTP content that contains this body part.
headers
Type: HttpContentHeadersHeader fields describing the body part.
Return Value
Type: System.IO.Stream
The Stream instance where the message body part is written.
Remarks
The MultipartFormDataStreamProvider examines the headers provided by the MIME multipart parser, and decides whether to return a file stream or a memory stream for the body part.