Partager via


NameValueHeaderValue.TryParse Méthode

Définition

Surcharges

TryParse(StringSegment, NameValueHeaderValue)

Tente d’analyser le spécifié input en tant NameValueHeaderValueque .

TryParse(String, NameValueHeaderValue)

TryParse(StringSegment, NameValueHeaderValue)

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

Tente d’analyser le spécifié input en tant NameValueHeaderValueque .

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

Paramètres

input
StringSegment

Valeur à analyser.

parsedValue
NameValueHeaderValue

Valeur analysée.

Retours

true si l’entrée est valide NameValueHeaderValue, sinon false.

S’applique à

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

Paramètres

input
String
parsedValue
NameValueHeaderValue

Retours

S’applique à