Share via


NameValueHeaderValue.TryParse Method

Definition

Overloads

TryParse(StringSegment, NameValueHeaderValue)

Attempts to parse the specified input as a NameValueHeaderValue.

TryParse(String, NameValueHeaderValue)

TryParse(StringSegment, NameValueHeaderValue)

Source:
NameValueHeaderValue.cs
Source:
NameValueHeaderValue.cs
Source:
NameValueHeaderValue.cs

Attempts to parse the specified input as a 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

Parameters

input
StringSegment

The value to parse.

parsedValue
NameValueHeaderValue

The parsed value.

Returns

true if input is a valid NameValueHeaderValue, otherwise false.

Applies to

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

Parameters

input
String
parsedValue
NameValueHeaderValue

Returns

Applies to