Share via


HttpProductHeaderValue.Parse(String) Méthode

Définition

Convertit une chaîne en instance HttpProductHeaderValue.

public:
 static HttpProductHeaderValue ^ Parse(Platform::String ^ input);
 static HttpProductHeaderValue Parse(winrt::hstring const& input);
public static HttpProductHeaderValue Parse(string input);
function parse(input)
Public Shared Function Parse (input As String) As HttpProductHeaderValue

Paramètres

input
String

Platform::String

winrt::hstring

Chaîne qui représente le nom et la version du produit.

Retours

Un instance HttpProductHeaderValue.

Remarques

Voici les exceptions levées par cette fonction.,

E_INVALIDARG

Le paramètre d’entrée est null (Nothing en Visual Basic).

Le paramètre d’entrée n’est pas un nom de produit et des informations de version non valides.

S’applique à