ProductHeaderValue.TryParse(String, ProductHeaderValue) 方法

定義

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

public:
 static bool TryParse(System::String ^ input, [Runtime::InteropServices::Out] System::Net::Http::Headers::ProductHeaderValue ^ % parsedValue);
public static bool TryParse (string input, out System.Net.Http.Headers.ProductHeaderValue parsedValue);
public static bool TryParse (string? input, out System.Net.Http.Headers.ProductHeaderValue? parsedValue);
static member TryParse : string * ProductHeaderValue -> bool
Public Shared Function TryParse (input As String, ByRef parsedValue As ProductHeaderValue) As Boolean

參數

input
String

要驗證的字串。

parsedValue
ProductHeaderValue

字串的 ProductHeaderValue 版本。

傳回

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

適用於