StringWithQualityHeaderValue.TryParse 方法

定义

重载

TryParse(StringSegment, StringWithQualityHeaderValue)

尝试将指定的 input 解析为 StringWithQualityHeaderValue

TryParse(String, StringWithQualityHeaderValue)

TryParse(StringSegment, StringWithQualityHeaderValue)

Source:
StringWithQualityHeaderValue.cs
Source:
StringWithQualityHeaderValue.cs
Source:
StringWithQualityHeaderValue.cs

尝试将指定的 input 解析为 StringWithQualityHeaderValue

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

参数

input
StringSegment

要分析的值。

parsedValue
StringWithQualityHeaderValue

分析的值。

返回

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

适用于

TryParse(String, StringWithQualityHeaderValue)

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

参数

input
String

返回

适用于