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.

ByteRangeStreamContent Constructor (Stream, RangeHeaderValue, MediaTypeHeaderValue, Int32)

HttpContent implementation which provides a byte range view over a stream used to generate HTTP 206 (Partial Content) byte range responses. If none of the requested ranges overlap with the current extend of the selected resource represented by the content parameter then an InvalidByteRangeException is thrown indicating the valid Content-Range of the content.

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

public ByteRangeStreamContent(
	Stream content,
	RangeHeaderValue range,
	MediaTypeHeaderValue mediaType,
	int bufferSize


Type: System.IO.Stream
The stream over which to generate a byte range view.
Type: RangeHeaderValue
The range or ranges, typically obtained from the Range HTTP request header field.
Type: MediaTypeHeaderValue
The media type of the content stream.
Type: System.Int32
The buffer size used when copying the content stream.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft