Partilhar via


NameValueHeaderValue.TryParse Método

Definição

Sobrecargas

TryParse(StringSegment, NameValueHeaderValue)

Tenta analisar o especificado input como um NameValueHeaderValue.

TryParse(String, NameValueHeaderValue)

TryParse(StringSegment, NameValueHeaderValue)

Origem:
NameValueHeaderValue.cs
Origem:
NameValueHeaderValue.cs
Origem:
NameValueHeaderValue.cs

Tenta analisar o especificado input como um 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

Parâmetros

input
StringSegment

O valor a analisar.

parsedValue
NameValueHeaderValue

O valor analisado.

Retornos

true se a entrada for válida NameValueHeaderValue, caso contrário false, .

Aplica-se a

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

Parâmetros

input
String
parsedValue
NameValueHeaderValue

Retornos

Aplica-se a