共用方式為


HttpChallengeHeaderValue.TryParse(String, HttpChallengeHeaderValue) 方法

定義

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

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

參數

input
String

Platform::String

winrt::hstring

要驗證的字串。

challengeHeaderValue
HttpChallengeHeaderValue

字串的 HttpChallengeHeaderValue 版本。

傳回

Boolean

bool

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

適用於