FrameworkHttpHandler.ParseRangeHeader Method
Parses an HTTP-style range header.
Namespace: Microsoft.TeamFoundation.Server.Core.WebServices
Assembly: Microsoft.TeamFoundation.Server.Core (in Microsoft.TeamFoundation.Server.Core.dll)
Syntax
'Declaration
Protected Shared Function ParseRangeHeader ( _
range As String, _
<OutAttribute> ByRef totalLength As Long, _
<OutAttribute> ByRef start As Long, _
<OutAttribute> ByRef end As Long _
) As Boolean
protected static bool ParseRangeHeader(
string range,
out long totalLength,
out long start,
out long end
)
protected:
static bool ParseRangeHeader(
String^ range,
[OutAttribute] long long% totalLength,
[OutAttribute] long long% start,
[OutAttribute] long long% end
)
static member ParseRangeHeader :
range:string *
totalLength:int64 byref *
start:int64 byref *
end:int64 byref -> bool
protected static function ParseRangeHeader(
range : String,
totalLength : long,
start : long,
end : long
) : boolean
Parameters
range
Type: System.StringRange in HTTP form
totalLength
Type: System.Int64%Total number of bytes.
start
Type: System.Int64%Starting byte offset (inclusive).
end
Type: System.Int64%Ending byte offset (inclusive).
Return Value
Type: System.Boolean
Remarks
This method only accepts the style bytes=0-500/1000, as all 3 parameters are needed by the framework.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.