Public Shared Function ToInt16( _
ByVal s As String _) As Short
[C#]
public static short ToInt16(strings);
[C++]
public: static short ToInt16(String* s);
[JScript]
public static function ToInt16(
s : String) : Int16;
パラメータ
- s
変換する文字列。
戻り値
文字列と等価の Int16 。
例外
例外の種類 | 条件 |
---|---|
ArgumentNullException | s が null 参照 (Visual Basic では Nothing) です。 |
FormatException | s の形式が正しくありません。 |
OverflowException | s が Int16.MinValue 未満の数値か、 Int16.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