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

열 이름입니다.

반환

지정된 열의 값입니다.

예외

지정된 이름이 올바른 열 이름이 아닌 경우

지정된 캐스트가 잘못된 경우

적용 대상

추가 정보