Click or drag to resize
RequestHelperGetRange Method (Int64, HttpContextBase, Boolean, Boolean, Boolean)
Parses the range header from the request.

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 13.0.131
Syntax
C#
public static long[,] GetRange(
	long size,
	HttpContextBase currentContext,
	out bool isRangeRequest,
	out bool isMultipart,
	out bool areRangesValid
)

Parameters

size
Type: SystemInt64
Size of data.
currentContext
Type: System.WebHttpContextBase
Current HTTP context
isRangeRequest
Type: SystemBoolean
Indicates whether it is range request.
isMultipart
Type: SystemBoolean
Indicates whether it is multipart range request.
areRangesValid
Type: SystemBoolean
Indicates whether ranges are valid (or request is not range request).

Return Value

Type: Int64
2D Array in format {{START_RANGE,END_RANGE},{START_RANGE, END_RANGE}}
See Also