IParsable<TSelf>.Parse(String, IFormatProvider) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
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
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.