共用方式為


StringWithQualityHeaderValue.TryParse 方法

定義

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

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

參數

input
String

要驗證的字串。

傳回

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

適用於