Public Shared Function ToInt32( _
ByVal s As String _) As Integer
[C#]
public static int ToInt32(strings);
[C++]
public: static int ToInt32(String* s);
[JScript]
public static function ToInt32(
s : String) : int;
パラメータ
- s
変換する文字列。
戻り値
文字列と等価の Int32 。
例外
例外の種類 | 条件 |
---|---|
ArgumentNullException | s が null 参照 (Visual Basic では Nothing) です。 |
FormatException | s の形式が正しくありません。 |
OverflowException | s が Int32.MinValue 未満の数値か、 Int32.MaxValue より大きい数値を表しています。 |
必要条件
プラットフォーム: 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