共用方式為


HttpProductHeaderValue.Parse(String) 方法

定義

將字串轉換為 HttpProductHeaderValue 實例。

public:
 static HttpProductHeaderValue ^ Parse(Platform::String ^ input);
 static HttpProductHeaderValue Parse(winrt::hstring const& input);
public static HttpProductHeaderValue Parse(string input);
function parse(input)
Public Shared Function Parse (input As String) As HttpProductHeaderValue

參數

input
String

Platform::String

winrt::hstring

表示產品名稱和版本的字串。

傳回

HttpProductHeaderValue實例。

備註

以下是此函式擲回的例外狀況。

E_INVALIDARG

在 Visual Basic) 中, 輸入 參數為 Null (Nothing

輸入參數不正確產品名稱和版本資訊。

適用於