指定した Boolean 値を等価の 32 ビット符号付き整数に変換します。
Overloads Public Shared Function ToInt32( _
ByVal value As Boolean _) As Integer
[C#]
public static int ToInt32(boolvalue);
[C++]
public: static int ToInt32(boolvalue);
[JScript]
public static function ToInt32(
value : Boolean) : int;
パラメータ
- value
Boolean 値。
戻り値
value が true の場合は数値の 1。それ以外の場合は 0。
必要条件
プラットフォーム: 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, Common Language Infrastructure (CLI) Standard
参照
Convert クラス | Convert メンバ | System 名前空間 | Convert.ToInt32 オーバーロードの一覧