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

열 이름입니다.

반품

지정된 열의 값입니다.

예외

지정한 이름이 올바른 열 이름이 아닙니다.

지정된 캐스트가 잘못되었습니다.

적용 대상

추가 정보