XmlConvert.ToInt32(String) メソッド

定義

Stringを同等のInt32に変換します。

public:
 static int ToInt32(System::String ^ s);
public static int ToInt32(string s);
static member ToInt32 : string -> int
Public Shared Function ToInt32 (s As String) As Integer

パラメーター

s
String

変換する文字列。

返品

文字列と同等の Int32

例外

snullです。

s が正しい形式ではありません。

s は、 Int32.MinValue より小さいか、 Int32.MaxValue より大きい数値を表します。

適用対象