FormatterConverter.ToInt32 メソッド

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

Public Overridable Function ToInt32( _
   ByVal value As Object _) As Integer Implements IFormatterConverter.ToInt32
[C#]
public virtual int ToInt32(objectvalue);
[C++]
public: virtual int ToInt32(Object* value);
[JScript]
public function ToInt32(
   value : Object) : int;

パラメータ

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

戻り値

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

実装

IFormatterConverter.ToInt32

例外

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

解説

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

必要条件

プラットフォーム: 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 名前空間