RangeHeaderValue Constructor (Nullable<Int64>, Nullable<Int64>)
.NET Framework (current version)
Initializes a new instance of the RangeHeaderValue class with a byte range.
Assembly: System.Net.Http (in System.Net.Http.dll)
Parameters
- from
-
Type:
System::Nullable<Int64>
The position at which to start sending data.
- to
-
Type:
System::Nullable<Int64>
The position at which to stop sending data.
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | from is greater than to -or- from or to is less than 0. |
This constructor initializes a new instance of the RangeHeaderValue class with a Range header containing a specified byte range.
An example of a Range header with a byte range in an HTTP protocol request that requests the first 100 bytes would be would be the following:
Range: bytes=0-99\r\n\r\n
For this example, the from parameter would be specified as 0 and the to parameter would be specified as 99.
Universal Windows Platform
Available since 8
.NET Framework
Available since 4.5
Portable Class Library
Supported in: portable .NET platforms
Windows Phone
Available since 8.1
Available since 8
.NET Framework
Available since 4.5
Portable Class Library
Supported in: portable .NET platforms
Windows Phone
Available since 8.1
Show: