HttpRangeItemHeaderValue Class

Represents a single item in a HTTP Range header value.

Namespace: System.Net.Http.Headers

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

Syntax

public sealed class HttpRangeItemHeaderValue

Constructors

HttpRangeItemHeaderValue(long from)

Initializes a new instance of the HttpRangeItemHeaderValue class with the specified start byte.

from
The starting byte position of the range.

HttpRangeItemHeaderValue(long from, long to)

Initializes a new instance of the HttpRangeItemHeaderValue class with the specified start and end bytes.

from
The starting byte position of the range.
to
The ending byte position of the range.

Properties

From

Gets the starting byte position of the range.

public long From { get; }

To

Gets the ending byte position of the range.

public long? To { get; }

Methods

Equals(object obj)

Determines whether the specified object is equal to the current object.

public override bool Equals(object obj)

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

ToString()

Returns a string that represents the current object.

public override string ToString()

See Also