StringWithQualityHeaderValue.TryParse 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
TryParse(StringSegment, StringWithQualityHeaderValue) |
嘗試將指定的 |
TryParse(String, StringWithQualityHeaderValue) |
TryParse(StringSegment, StringWithQualityHeaderValue)
嘗試將指定的 input
剖析為 StringWithQualityHeaderValue 。
public:
static bool TryParse(Microsoft::Extensions::Primitives::StringSegment input, [Runtime::InteropServices::Out] Microsoft::Net::Http::Headers::StringWithQualityHeaderValue ^ % parsedValue);
public static bool TryParse (Microsoft.Extensions.Primitives.StringSegment input, out Microsoft.Net.Http.Headers.StringWithQualityHeaderValue parsedValue);
public static bool TryParse (Microsoft.Extensions.Primitives.StringSegment input, out Microsoft.Net.Http.Headers.StringWithQualityHeaderValue? parsedValue);
static member TryParse : Microsoft.Extensions.Primitives.StringSegment * StringWithQualityHeaderValue -> bool
Public Shared Function TryParse (input As StringSegment, ByRef parsedValue As StringWithQualityHeaderValue) As Boolean
參數
- input
- StringSegment
要剖析的值。
- parsedValue
- StringWithQualityHeaderValue
剖析的值。
傳回
true
如果輸入是有效的 StringWithQualityHeaderValue ,則為 ,否則 false
為 。
適用於
TryParse(String, StringWithQualityHeaderValue)
public:
static bool TryParse(System::String ^ input, [Runtime::InteropServices::Out] Microsoft::Net::Http::Headers::StringWithQualityHeaderValue ^ % parsedValue);
public static bool TryParse (string input, out Microsoft.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
- parsedValue
- StringWithQualityHeaderValue