Aracılığıyla paylaş


HttpContentRangeHeaderValue Class

Definition

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

public ref class HttpContentRangeHeaderValue sealed : IStringable
/// [Windows.Foundation.Metadata.Activatable(Windows.Web.Http.Headers.IHttpContentRangeHeaderValueFactory, 65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class HttpContentRangeHeaderValue final : IStringable
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Activatable(Windows.Web.Http.Headers.IHttpContentRangeHeaderValueFactory, 65536, "Windows.Foundation.UniversalApiContract")]
class HttpContentRangeHeaderValue final : IStringable
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Web.Http.Headers.IHttpContentRangeHeaderValueFactory), 65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class HttpContentRangeHeaderValue : IStringable
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Web.Http.Headers.IHttpContentRangeHeaderValueFactory), 65536, "Windows.Foundation.UniversalApiContract")]
public sealed class HttpContentRangeHeaderValue : IStringable
function HttpContentRangeHeaderValue(from, to, length)
Public NotInheritable Class HttpContentRangeHeaderValue
Implements IStringable
Inheritance
Object Platform::Object IInspectable HttpContentRangeHeaderValue
Attributes
Implements

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

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, UInt64, UInt64)

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

HttpContentRangeHeaderValue(UInt64, UInt64)

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

HttpContentRangeHeaderValue(UInt64)

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

Properties

FirstBytePosition

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

LastBytePosition

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

Length

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

Unit

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

Methods

Parse(String)

Converts a string to an HttpContentRangeHeaderValue instance.

ToString()

Returns a string that represents the current HttpContentRangeHeaderValue object.

TryParse(String, HttpContentRangeHeaderValue)

Determines whether a string is valid HttpContentRangeHeaderValue information.

Applies to

See also