ProductHeaderValue.TryParse(String, ProductHeaderValue) Método
Definição
Determina se uma cadeia de caracteres é uma informação ProductHeaderValue válida.Determines whether a string is valid ProductHeaderValue information.
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
Parâmetros
- input
- String
A cadeia de caracteres a ser validada.The string to validate.
- parsedValue
- ProductHeaderValue
A versão ProductHeaderValue da cadeia de caracteres.The ProductHeaderValue version of the string.
Retornos
true se input for uma informação ProductHeaderValue válida; caso contrário, false.true if input is valid ProductHeaderValue information; otherwise, false.