Share via


ProductHeaderValue.TryParse(String, ProductHeaderValue) Methode

Definition

Bestimmt, ob eine Zeichenfolge eine gültige ProductHeaderValue-Information ist.

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

Parameter

input
String

Die zu überprüfende Zeichenfolge.

parsedValue
ProductHeaderValue

Die ProductHeaderValue-Version der Zeichenfolge.

Gibt zurück

true, wenn input eine gültige ProductHeaderValue-Information ist; andernfalls false.

Gilt für: