Share via


ContentRangeHeaderValue.TryParse Method

Definition

Overloads

TryParse(StringSegment, ContentRangeHeaderValue)

Attempts to parse the specified input as a ContentRangeHeaderValue.

TryParse(String, ContentRangeHeaderValue)

TryParse(StringSegment, ContentRangeHeaderValue)

Source:
ContentRangeHeaderValue.cs
Source:
ContentRangeHeaderValue.cs
Source:
ContentRangeHeaderValue.cs

Attempts to parse the specified input as a ContentRangeHeaderValue.

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

Parameters

input
StringSegment

The value to parse.

parsedValue
ContentRangeHeaderValue

The parsed value.

Returns

true if input is a valid ContentRangeHeaderValue, otherwise false.

Applies to

TryParse(String, ContentRangeHeaderValue)

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

Parameters

input
String

Returns

Applies to