SqlDataRecord.GetDecimal メソッドとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > SqlDataRecord.GetDecimal メソッドの意味・解説 

SqlDataRecord.GetDecimal メソッド

メモ : このメソッドは、.NET Framework version 2.0 で新しく追加されたものです。

序数で指定された列の値を Decimal として取得します。

名前空間: Microsoft.SqlServer.Server
アセンブリ: System.Data (system.data.dll 内)
構文構文

Dim instance As SqlDataRecord
Dim ordinal As Integer
Dim returnValue As Decimal

returnValue = instance.GetDecimal(ordinal)
public decimal GetDecimal (
    int ordinal
)
public final Decimal GetDecimal (
    int ordinal
)

パラメータ

ordinal

列の 0 から始まる序数。

戻り値
列値の Decimal 表現。

例外例外
例外の種類条件

IndexOutOfRangeException

ordinal が 0 未満か、列数 (FieldCount) を超えています。

SqlNullValueException

ordinal で指定された列が null 参照 (Visual Basic では Nothing) です。

InvalidCastException

型が一致していません。

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
SqlDataRecord クラス
SqlDataRecord メンバ
Microsoft.SqlServer.Server 名前空間



英和和英テキスト翻訳

英語⇒日本語日本語⇒英語

辞書ショートカット

すべての辞書の索引

SqlDataRecord.GetDecimal メソッドのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



SqlDataRecord.GetDecimal メソッドのページの著作権

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2026 Microsoft.All rights reserved.

©2026 GRAS Group, Inc.RSS