Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

MultipartFileStreamProvider.GetStream Method

Gets the stream instance where the message body part is written to.

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

public override Stream GetStream(
	HttpContent parent,
	HttpContentHeaders headers
)

Parameters

parent
Type: HttpContent
The content of HTTP.
headers
Type: HttpContentHeaders
The header fields describing the body part.

Return Value

Type: System.IO.Stream
The Stream instance where the message body part is written to.

This body part stream provider examines the headers provided by the MIME multipart parser and decides which FileStream to write the body part to.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft