Share via


RangeHeaderValue.TryParse Method

Definition

Overloads

TryParse(StringSegment, RangeHeaderValue)

Attempts to parse the specified input as a RangeHeaderValue.

TryParse(String, RangeHeaderValue)

TryParse(StringSegment, RangeHeaderValue)

Source:
RangeHeaderValue.cs
Source:
RangeHeaderValue.cs
Source:
RangeHeaderValue.cs

Attempts to parse the specified input as a RangeHeaderValue.

public:
 static bool TryParse(Microsoft::Extensions::Primitives::StringSegment input, [Runtime::InteropServices::Out] Microsoft::Net::Http::Headers::RangeHeaderValue ^ % parsedValue);
public static bool TryParse (Microsoft.Extensions.Primitives.StringSegment input, out Microsoft.Net.Http.Headers.RangeHeaderValue parsedValue);
public static bool TryParse (Microsoft.Extensions.Primitives.StringSegment input, out Microsoft.Net.Http.Headers.RangeHeaderValue? parsedValue);
static member TryParse : Microsoft.Extensions.Primitives.StringSegment * RangeHeaderValue -> bool
Public Shared Function TryParse (input As StringSegment, ByRef parsedValue As RangeHeaderValue) As Boolean

Parameters

input
StringSegment

The value to parse.

parsedValue
RangeHeaderValue

The parsed value.

Returns

true if input is a valid RangeHeaderValue, otherwise false.

Applies to

TryParse(String, RangeHeaderValue)

public:
 static bool TryParse(System::String ^ input, [Runtime::InteropServices::Out] Microsoft::Net::Http::Headers::RangeHeaderValue ^ % parsedValue);
public static bool TryParse (string input, out Microsoft.Net.Http.Headers.RangeHeaderValue parsedValue);
static member TryParse : string * RangeHeaderValue -> bool
Public Shared Function TryParse (input As String, ByRef parsedValue As RangeHeaderValue) As Boolean

Parameters

input
String
parsedValue
RangeHeaderValue

Returns

Applies to