String.IConvertible.ToDecimal(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.
Pour obtenir une description de ce membre, consultez ToDecimal(IFormatProvider).
virtual System::Decimal System.IConvertible.ToDecimal(IFormatProvider ^ provider) = IConvertible::ToDecimal;
decimal IConvertible.ToDecimal(IFormatProvider provider);
abstract member System.IConvertible.ToDecimal : IFormatProvider -> decimal
override this.System.IConvertible.ToDecimal : IFormatProvider -> decimal
Function ToDecimal (provider As IFormatProvider) As Decimal Implements IConvertible.ToDecimal
Paramètres
- provider
- IFormatProvider
Objet qui fournit des informations de mise en forme spécifiques à la culture.
Retours
Valeur convertie de l’objet actuel String .
Implémente
Exceptions
Impossible d’analyser la valeur de l’objet actuel String .
La valeur de l’objet actuel String est un nombre inférieur à Decimal.MinValue ou Decimal.MaxValue supérieur.
Remarques
Ce membre est une implémentation explicite de membre d’interface. Elle ne peut être utilisée que lorsque l’instance String est convertie en IConvertible interface. L’alternative recommandée consiste à appeler la Convert.ToDecimal(String, IFormatProvider) méthode.