共用方式為


HttpContentCodingHeaderValue.TryParse 方法

定義

判斷字串是否為有效的 HttpContentCodingHeaderValue 資訊。

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

參數

input
String

Platform::String

winrt::hstring

要驗證的字串。

contentCodingHeaderValue
HttpContentCodingHeaderValue

字串的 HttpContentCodingHeaderValue 版本。

傳回

Boolean

bool

如果input是有效的HttpContentCodingHeaderValue資訊,則為true;否則為false

適用於