RangeHeaderValue.TryParse 方法

定义

重载

TryParse(StringSegment, RangeHeaderValue)

尝试将指定的 input 分析为 RangeHeaderValue

TryParse(String, RangeHeaderValue)

TryParse(StringSegment, RangeHeaderValue)

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

尝试将指定的 input 分析为 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

参数

input
StringSegment

要分析的值。

parsedValue
RangeHeaderValue

已分析的值。

返回

true 如果输入是有效的 RangeHeaderValue,则为 ,否则为 false

适用于

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

参数

input
String
parsedValue
RangeHeaderValue

返回

适用于