HttpProductHeaderValue.TryParse(String, HttpProductHeaderValue) 方法

定義

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

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

參數

input
String

Platform::String

winrt::hstring

要驗證的字串。

傳回

Boolean

bool

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

適用於