FormatterConverter.ToInt32(Object) 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.
Convertit une valeur en entier signé 32 bits.
public:
virtual int ToInt32(System::Object ^ value);
public int ToInt32(object value);
abstract member ToInt32 : obj -> int
override this.ToInt32 : obj -> int
Public Function ToInt32 (value As Object) As Integer
Paramètres
- value
- Object
Objet à convertir.
Retours
Converti value ou si le type paramètre est nullnull .
Implémente
Exceptions
Le value paramètre est null.
Remarques
Cette méthode utilise la culture invariante (voir CultureInfo.InvariantCulture). Pour utiliser la culture actuelle ou spécifier une culture, utilisez plutôt la Convert.ToInt32 méthode. Pour plus d'informations, consultez Int32, Convert et ValueType.