バイト配列内の指定位置にある 1 バイトから変換されたブール値を返します。
Public Shared Function ToBoolean( _
ByVal value() As Byte, _ ByVal startIndex As Integer _) As Boolean
[C#]
public static bool ToBoolean(byte[] value,intstartIndex);
[C++]
public: static bool ToBoolean(unsigned charvalue __gc[],intstartIndex);
[JScript]
public static function ToBoolean(
value : Byte[],startIndex : int) : Boolean;
パラメータ
- value
バイト配列。 - startIndex
value 内の開始位置。
戻り値
value の startIndex にあるバイトが 0 以外の場合は true 。それ以外の場合は false 。
例外
例外の種類 | 条件 |
---|---|
ArgumentNullException | value が null 参照 (Visual Basic では Nothing) です。 |
ArgumentOutOfRangeException | startIndex が 0 未満か、 value の長さから 1 を引いた値より大きい値です。 |
必要条件
プラットフォーム: 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