HttpLanguageRangeWithQualityHeaderValue.TryParse 方法

定义

确定字符串是否为有效的 HttpLanguageRangeWithQualityHeaderValue 信息。

public:
 static bool TryParse(Platform::String ^ input, [Out] HttpLanguageRangeWithQualityHeaderValue ^ & languageRangeWithQualityHeaderValue);
 static bool TryParse(winrt::hstring const& input, [Out] HttpLanguageRangeWithQualityHeaderValue const& & languageRangeWithQualityHeaderValue);
public static bool TryParse(string input, out HttpLanguageRangeWithQualityHeaderValue languageRangeWithQualityHeaderValue);
Public Shared Function TryParse (input As String, ByRef languageRangeWithQualityHeaderValue As HttpLanguageRangeWithQualityHeaderValue) As Boolean

参数

input
String

Platform::String

winrt::hstring

要验证的字符串。

languageRangeWithQualityHeaderValue
HttpLanguageRangeWithQualityHeaderValue

字符串的 HttpLanguageRangeWithQualityHeaderValue 版本。

返回

Boolean

bool

如果输入是有效的 HttpLanguageRangeWithQualityHeaderValue 信息,则为 true;否则为 false

适用于