DataReaderExtensions.GetDecimal(DbDataReader, String) メソッド

定義

指定した列の値を Decimal として取得します。

public:
[System::Runtime::CompilerServices::Extension]
 static System::Decimal GetDecimal(System::Data::Common::DbDataReader ^ reader, System::String ^ name);
public static decimal GetDecimal (this System.Data.Common.DbDataReader reader, string name);
static member GetDecimal : System.Data.Common.DbDataReader * string -> decimal
<Extension()>
Public Function GetDecimal (reader As DbDataReader, name As String) As Decimal

パラメーター

reader
DbDataReader

列値の取得元となるデータ リーダー。

name
String

列の名前。

戻り値

指定された列の値。

例外

指定された名前は、有効な列名ではありません。

指定したキャストが有効ではありません。

適用対象

こちらもご覧ください