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