HttpContentRangeHeaderValue HttpContentRangeHeaderValue HttpContentRangeHeaderValue HttpContentRangeHeaderValue HttpContentRangeHeaderValue Class

Definition

Represents the value of the Content-Range HTTP header on HTTP content in a request or a response.

public : sealed class HttpContentRangeHeaderValue : IStringable
struct winrt::Windows::Web::Http::Headers::HttpContentRangeHeaderValue : IStringable
public sealed class HttpContentRangeHeaderValue : IStringable
Public NotInheritable Class HttpContentRangeHeaderValue Implements IStringable
var httpContentRangeHeaderValue = new httpContentRangeHeaderValue(from, to);
Attributes

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

The HttpContentRangeHeaderValue class represents the value of the Content-Range HTTP header on HTTP content sent in an HTTP request or received in an response.

The ContentRange property on the HttpContentHeaderCollection returns an HttpContentRangeHeaderValue object.

Constructors

HttpContentRangeHeaderValue(UInt64) HttpContentRangeHeaderValue(UInt64) HttpContentRangeHeaderValue(UInt64) HttpContentRangeHeaderValue(UInt64) HttpContentRangeHeaderValue(UInt64)

Initializes a new instance of the HttpContentRangeHeaderValue class with a content length.

HttpContentRangeHeaderValue(UInt64, UInt64) HttpContentRangeHeaderValue(UInt64, UInt64) HttpContentRangeHeaderValue(UInt64, UInt64) HttpContentRangeHeaderValue(UInt64, UInt64) HttpContentRangeHeaderValue(UInt64, UInt64)

Initializes a new instance of the HttpContentRangeHeaderValue class with a start and stop position.

HttpContentRangeHeaderValue(UInt64, UInt64, UInt64) HttpContentRangeHeaderValue(UInt64, UInt64, UInt64) HttpContentRangeHeaderValue(UInt64, UInt64, UInt64) HttpContentRangeHeaderValue(UInt64, UInt64, UInt64) HttpContentRangeHeaderValue(UInt64, UInt64, UInt64)

Initializes a new instance of the HttpContentRangeHeaderValue class with a start and stop position and a content length.

Properties

FirstBytePosition FirstBytePosition FirstBytePosition FirstBytePosition FirstBytePosition

Gets the position at which to start sending data in the Content-Range HTTP header.

LastBytePosition LastBytePosition LastBytePosition LastBytePosition LastBytePosition

Gets the position at which to stop sending data in the Content-Range HTTP header.

Length Length Length Length Length

Gets the length of the full content entity body in the Content-Range HTTP header.

Unit Unit Unit Unit Unit

Gets or sets the value of the range units used in the Content-Range HTTP header.

Methods

Parse(String) Parse(String) Parse(String) Parse(String) Parse(String)

Converts a string to an HttpContentRangeHeaderValue instance.

ToString() ToString() ToString() ToString() ToString()

Returns a string that represents the current HttpContentRangeHeaderValue object.

TryParse(String, HttpContentRangeHeaderValue) TryParse(String, HttpContentRangeHeaderValue) TryParse(String, HttpContentRangeHeaderValue) TryParse(String, HttpContentRangeHeaderValue) TryParse(String, HttpContentRangeHeaderValue)

Determines whether a string is valid HttpContentRangeHeaderValue information.

See also