Decimal.IConvertible.ToInt32(IFormatProvider) Metodo
Definizione
Per una descrizione di questo membro, vedere ToInt32(IFormatProvider).For a description of this member, see ToInt32(IFormatProvider).
virtual int System.IConvertible.ToInt32(IFormatProvider ^ provider) = IConvertible::ToInt32;
int IConvertible.ToInt32 (IFormatProvider provider);
Function ToInt32 (provider As IFormatProvider) As Integer Implements IConvertible.ToInt32
Parametri
- provider
- IFormatProvider
Il parametro viene ignorato.The parameter is ignored.
Restituisce
Valore dell'istanza corrente, convertito in Int32.The value of the current instance, converted to a Int32.
Implementazioni
Eccezioni
Il valore intero risultante è minore di MinValue o maggiore di MaxValue.The resulting integer value is less than MinValue or greater than MaxValue.
Commenti
Questo membro è un’implementazione esplicita di un membro di interfaccia.This member is an explicit interface member implementation. Può essere utilizzato solo quando si esegue il cast dell'istanza Decimal a un'interfaccia IConvertible.It can be used only when the Decimal instance is cast to an IConvertible interface. L'alternativa consigliata consiste nel chiamare il Decimal.ToInt32 metodo Convert.ToInt32 o il metodo.The recommended alternative is to call either the Decimal.ToInt32 method or the Convert.ToInt32 method.
Il Decimal valore viene arrotondato per eccesso a zero al valore intero più vicino.The Decimal value is rounded toward zero to the nearest integer value.