FormatterConverter.ToInt16(Object) Método
Definição
Converte um valor em um inteiro com sinal de 16 bits.Converts a value to a 16-bit signed integer.
public:
virtual short ToInt16(System::Object ^ value);
public short ToInt16 (object value);
abstract member ToInt16 : obj -> int16
override this.ToInt16 : obj -> int16
Public Function ToInt16 (value As Object) As Short
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.ToInt16 método em vez disso.To use the current culture or to specify a culture, use the Convert.ToInt16 method instead. Para obter mais informações, consulte Int16, Convert e ValueType.For more information, see Int16, Convert, and ValueType.