MultipartStreamProvider.GetStream Method (HttpContent, HttpContentHeaders)
Gets the stream where to write the body part to. This method is called when a MIME multipart body part has been parsed.
Namespace: System.Net.Http
Assembly: System.Net.Http.Formatting (in System.Net.Http.Formatting.dll)
Syntax
public abstract Stream GetStream(
HttpContent parent,
HttpContentHeaders headers
)
public:
virtual Stream^ GetStream(
HttpContent^ parent,
HttpContentHeaders^ headers
) abstract
abstract GetStream :
parent:HttpContent *
headers:HttpContentHeaders -> Stream
Public MustOverride Function GetStream (
parent As HttpContent,
headers As HttpContentHeaders
) As Stream
Parameters
parent
Type: System.Net.Http.HttpContentThe content of the HTTP.
headers
Type: System.Net.Http.Headers.HttpContentHeadersThe header fields describing the body part.
Return Value
Type: System.IO.Stream
The Stream instance where the message body part is written to.
See Also
MultipartStreamProvider Class
System.Net.Http Namespace
Return to top