IParsable<TSelf>.Parse(String, IFormatProvider) Méthode

Définition

Analyse une chaîne en une valeur.

public:
 static TSelf Parse(System::String ^ s, IFormatProvider ^ provider);
public static abstract TSelf Parse(string s, IFormatProvider? provider);
static member Parse : string * IFormatProvider -> 'Self
Public Shared Function Parse (s As String, provider As IFormatProvider) As TSelf

Paramètres

s
String

Chaîne à analyser.

provider
IFormatProvider

Objet qui fournit des informations de mise en forme spécifiques à la culture sur s.

Retours

TSelf

Résultat de l’analyse s.

Exceptions

s a la valeur null.

s n’est pas au format correct.

s n’est pas représenté par TSelf.

S’applique à