FormatterConverter.ToInt32(Object) Método
Definição
Converte um valor em um inteiro com sinal de 32 bits.Converts a value to a 32-bit signed integer.
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
Parâmetros
- value
- Object
O objeto a ser convertido.The object to convert.
Retornos
O value convertido ou então null, se o parâmetro type é null.The converted value or null if the type parameter is null.
Implementações
Exceções
O parâmetro value é null.The value parameter is null.
Comentários
Esse método usa a cultura invariável (consulte CultureInfo.InvariantCulture ).This method uses the invariant culture (see CultureInfo.InvariantCulture). Para usar a cultura atual ou para especificar uma cultura, use o Convert.ToInt32 método em vez disso.To use the current culture or to specify a culture, use the Convert.ToInt32 method instead. Para obter mais informações, consulte Int32, Convert e ValueType.For more information, see Int32, Convert, and ValueType.