次の方法で共有


FormatterConverter.ToInt16 メソッド

値を 16 ビット符号付き整数に変換します。

Public Overridable Function ToInt16( _
   ByVal value As Object _) As Short Implements IFormatterConverter.ToInt16
[C#]
public virtual short ToInt16(objectvalue);
[C++]
public: virtual short ToInt16(Object* value);
[JScript]
public function ToInt16(
   value : Object) : Int16;

パラメータ

  • value
    変換対象のオブジェクト。

戻り値

変換後の値。type パラメータが null 参照 (Visual Basic では Nothing) の場合は null 参照 (Nothing) です。

実装

IFormatterConverter.ToInt16

例外

例外の種類 条件
ArgumentNullException value パラメータが null 参照 (Visual Basic では Nothing) です。

解説

メソッドの実装は ToInt16 と同じです。詳細については、 Int16ConvertValueType の各トピックを参照してください。

必要条件

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ

参照

FormatterConverter クラス | FormatterConverter メンバ | System.Runtime.Serialization 名前空間