ByteRangeStreamContent Constructor
Namespace: System.Net.Http
Assembly: System.Net.Http.Formatting (in System.Net.Http.Formatting.dll)
Overload List
Name | Description | |
---|---|---|
![]() |
ByteRangeStreamContent(Stream, RangeHeaderValue, MediaTypeHeaderValue) | 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. |
![]() |
ByteRangeStreamContent(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. |
![]() |
ByteRangeStreamContent(Stream, RangeHeaderValue, String) | 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. |
![]() |
ByteRangeStreamContent(Stream, RangeHeaderValue, String, 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. |
See Also
ByteRangeStreamContent Class
System.Net.Http Namespace
Return to top
ByteRangeStreamContent Constructor (Stream, RangeHeaderValue, MediaTypeHeaderValue)
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.
Syntax
public ByteRangeStreamContent(
Stream content,
RangeHeaderValue range,
MediaTypeHeaderValue mediaType
)
public:
ByteRangeStreamContent(
Stream^ content,
RangeHeaderValue^ range,
MediaTypeHeaderValue^ mediaType
)
new :
content:Stream *
range:RangeHeaderValue *
mediaType:MediaTypeHeaderValue -> ByteRangeStreamContent
Public Sub New (
content As Stream,
range As RangeHeaderValue,
mediaType As MediaTypeHeaderValue
)
Parameters
content
Type: System.IO.StreamThe stream over which to generate a byte range view.
range
Type: System.Net.Http.Headers.RangeHeaderValueThe range or ranges, typically obtained from the Range HTTP request header field.
mediaType
Type: System.Net.Http.Headers.MediaTypeHeaderValueThe media type of the content stream.
Return to top
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.
Syntax
public ByteRangeStreamContent(
Stream content,
RangeHeaderValue range,
MediaTypeHeaderValue mediaType,
int bufferSize
)
public:
ByteRangeStreamContent(
Stream^ content,
RangeHeaderValue^ range,
MediaTypeHeaderValue^ mediaType,
int bufferSize
)
new :
content:Stream *
range:RangeHeaderValue *
mediaType:MediaTypeHeaderValue *
bufferSize:int -> ByteRangeStreamContent
Public Sub New (
content As Stream,
range As RangeHeaderValue,
mediaType As MediaTypeHeaderValue,
bufferSize As Integer
)
Parameters
content
Type: System.IO.StreamThe stream over which to generate a byte range view.
range
Type: System.Net.Http.Headers.RangeHeaderValueThe range or ranges, typically obtained from the Range HTTP request header field.
mediaType
Type: System.Net.Http.Headers.MediaTypeHeaderValueThe media type of the content stream.
bufferSize
Type: System.Int32The buffer size used when copying the content stream.
Return to top
ByteRangeStreamContent Constructor (Stream, RangeHeaderValue, String)
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.
Syntax
public ByteRangeStreamContent(
Stream content,
RangeHeaderValue range,
string mediaType
)
public:
ByteRangeStreamContent(
Stream^ content,
RangeHeaderValue^ range,
String^ mediaType
)
new :
content:Stream *
range:RangeHeaderValue *
mediaType:string -> ByteRangeStreamContent
Public Sub New (
content As Stream,
range As RangeHeaderValue,
mediaType As String
)
Parameters
content
Type: System.IO.StreamThe stream over which to generate a byte range view.
range
Type: System.Net.Http.Headers.RangeHeaderValueThe range or ranges, typically obtained from the Range HTTP request header field.
mediaType
Type: System.StringThe media type of the content stream.
Return to top
ByteRangeStreamContent Constructor (Stream, RangeHeaderValue, String, 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.
Syntax
public ByteRangeStreamContent(
Stream content,
RangeHeaderValue range,
string mediaType,
int bufferSize
)
public:
ByteRangeStreamContent(
Stream^ content,
RangeHeaderValue^ range,
String^ mediaType,
int bufferSize
)
new :
content:Stream *
range:RangeHeaderValue *
mediaType:string *
bufferSize:int -> ByteRangeStreamContent
Public Sub New (
content As Stream,
range As RangeHeaderValue,
mediaType As String,
bufferSize As Integer
)
Parameters
content
Type: System.IO.StreamThe stream over which to generate a byte range view.
range
Type: System.Net.Http.Headers.RangeHeaderValueThe range or ranges, typically obtained from the Range HTTP request header field.
mediaType
Type: System.StringThe media type of the content stream.
bufferSize
Type: System.Int32The buffer size used when copying the content stream.
Return to top