Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

class Microsoft.​Net.​Http.​Headers.​ContentRangeHeaderValue

Assembly: Microsoft.Net.Http.Headers

Inheritance: object → ContentRangeHeaderValue

Represents a <c>Content-Range</c> response HTTP header.

Properties

Gets or sets the unit in which ranges are specified.
public long?
From
Gets the start of the range.
public long?
To
Gets the end of the range.
public long?
Length
Gets the total size of the document.
public bool
HasLength
Gets a value that determines if <see cref="P:Microsoft.Net.Http.Headers.ContentRangeHeaderValue.Length" /> has been specified.
public bool
HasRange
Gets a value that determines if <see cref="P:Microsoft.Net.Http.Headers.ContentRangeHeaderValue.From" /> and <see cref="P:Microsoft.Net.Http.Headers.ContentRangeHeaderValue.To" /> have been specified.

Methods

public bool
Equals​(object obj)
public int
GetHashCode​()
public string
ToString​()
public static ContentRangeHeaderValue
Parse​(Extensions.​Primitives.​StringSegment input)
Parses <paramref name="input" /> as a <see cref="T:Microsoft.Net.Http.Headers.ContentRangeHeaderValue" /> value.
Returns The parsed values.
input The values to parse.
public static bool
TryParse​(Extensions.​Primitives.​StringSegment input, ContentRangeHeaderValue& parsedValue)
protected void
Finalize​()
Inherited from object
GetType​()
Inherited from object
protected object
MemberwiseClone​()
Inherited from object