NameValueHeaderValue.TryParse 方法

定义

重载

TryParse(StringSegment, NameValueHeaderValue)

尝试分析指定input为 .NameValueHeaderValue

TryParse(String, NameValueHeaderValue)

TryParse(StringSegment, NameValueHeaderValue)

尝试分析指定input为 .NameValueHeaderValue

public:
 static bool TryParse(Microsoft::Extensions::Primitives::StringSegment input, [Runtime::InteropServices::Out] Microsoft::Net::Http::Headers::NameValueHeaderValue ^ % parsedValue);
public static bool TryParse (Microsoft.Extensions.Primitives.StringSegment input, out Microsoft.Net.Http.Headers.NameValueHeaderValue parsedValue);
public static bool TryParse (Microsoft.Extensions.Primitives.StringSegment input, out Microsoft.Net.Http.Headers.NameValueHeaderValue? parsedValue);
static member TryParse : Microsoft.Extensions.Primitives.StringSegment * NameValueHeaderValue -> bool
Public Shared Function TryParse (input As StringSegment, ByRef parsedValue As NameValueHeaderValue) As Boolean

参数

input
StringSegment

要分析的值。

parsedValue
NameValueHeaderValue

已分析的值。

返回

Boolean

true如果输入有效NameValueHeaderValue,则为false

适用于

TryParse(String, NameValueHeaderValue)

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

参数

input
String
parsedValue
NameValueHeaderValue

返回

Boolean

适用于