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.

Show: