RangeItemHeaderValue Constructor (Nullable<Int64>, Nullable<Int64>)
.NET Framework (current version)
Initializes a new instance of the RangeItemHeaderValue class.
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. |
An example of a byte-range in a Range header 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: