FormatterConverter.ToInt16(Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Parameters
- value
- Object
The object to convert.
Returns
The converted value
or null
if the type
parameter is null
.
Implements
Exceptions
The value
parameter is null
.
Remarks
This method uses the invariant culture (see CultureInfo.InvariantCulture). To use the current culture or to specify a culture, use the Convert.ToInt16 method instead. For more information, see Int16, Convert, and ValueType.
Applies to
Bekerjasama dengan kami di GitHub
Sumber untuk kandungan ini boleh didapati di GitHub, di mana anda juga boleh mencipta dan menyemak isu dan menarik permintaan. Untuk maklumat lanjut, lihat panduan penyumbang kami.