次の方法で共有


BitConverter.ToInt32 メソッド

バイト配列内の指定位置にある 4 バイトから変換された 32 ビット符号付き整数を返します。

Public Shared Function ToInt32( _
   ByVal value() As Byte, _   ByVal startIndex As Integer _) As Integer
[C#]
public static int ToInt32(byte[] value,intstartIndex);
[C++]
public: static int ToInt32(unsigned charvalue __gc[],intstartIndex);
[JScript]
public static function ToInt32(
   value : Byte[],startIndex : int) : int;

パラメータ

  • value
    バイト配列。
  • startIndex
    value 内の開始位置。

戻り値

startIndex から始まる 4 バイトで構成される 32 ビット符号付き整数。

例外

例外の種類 条件
ArgumentNullException value が null 参照 (Visual Basic では Nothing) です。
ArgumentOutOfRangeException startIndex が 0 未満か、 value の長さから 4 を引いた値より大きい値です。

必要条件

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

参照

BitConverter クラス | BitConverter メンバ | System 名前空間 | Int32