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 System.​Net.​Http.​Headers.​ContentRangeHeaderValue
Assembly: System.Net.Http
Inheritance: object → ContentRangeHeaderValue
Implemented Interfaces
Represents the value of the Content-Range header.
Properties
public
long?
From
Gets the position at which to start sending data.
public
bool
HasLength
Gets whether the Content-Range header has a length specified.
public
bool
HasRange
Gets whether the Content-Range has a range specified.
public
long?
Length
Gets the length of the full entity-body.
public
long?
To
Gets the position at which to stop sending data.
public
string
Unit
The range units used.
Methods
public
bool
Equals​(object obj)
Determines whether the specified Object is equal to the current <see cref="T:System.Net.Http.Headers.ContentRangeHeaderValue" /> object.
Returns <see langword="true" /> if the specified <see cref="T:System.Object" /> is equal to the current object; otherwise, <see langword="false" /> .
obj
The object to compare with the current object.
public
int
GetHashCode​()
Serves as a hash function for an <see cref="T:System.Net.Http.Headers.ContentRangeHeaderValue" /> object.
Returns A hash code for the current object.
public static
ContentRangeHeaderValue
Parse​(string input)
Converts a string to an <see cref="T:System.Net.Http.Headers.ContentRangeHeaderValue" /> instance.
Returns An <see cref="T:System.Net.Http.Headers.ContentRangeHeaderValue" /> instance.
input
A string that represents content range header value information.
public
string
ToString​()
Returns a string that represents the current <see cref="T:System.Net.Http.Headers.ContentRangeHeaderValue" /> object.
Returns A string that represents the current object.
protected
void
Finalize​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object