共用方式為


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

要驗證的字串。

傳回

Boolean

bool

如果輸入有效HttpLanguageRangeWithQualityHeaderValue資訊,則為true;否則為false

適用於