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 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 propres à la culture concernant s.

Retours

TSelf

Résultat de l’analyse s.

Exceptions

s a la valeur null.

Le format de s est incorrect.

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

S’applique à