다음을 통해 공유


OleDbDataReader.GetDecimal 메서드

지정된 열의 값을 Decimal 개체로 가져옵니다.

네임스페이스: System.Data.OleDb
어셈블리: System.Data(system.data.dll)

구문

‘선언
Public Overrides Function GetDecimal ( _
    ordinal As Integer _
) As Decimal
‘사용 방법
Dim instance As OleDbDataReader
Dim ordinal As Integer
Dim returnValue As Decimal

returnValue = instance.GetDecimal(ordinal)
public override decimal GetDecimal (
    int ordinal
)
public:
virtual Decimal GetDecimal (
    int ordinal
) override
public Decimal GetDecimal (
    int ordinal
)
public override function GetDecimal (
    ordinal : int
) : decimal

매개 변수

  • ordinal
    0부터 시작하는 열 서수입니다.

반환 값

지정된 열의 값입니다.

예외

예외 형식 조건

InvalidCastException

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

설명

변환이 수행되지 않으므로 검색하는 데이터는 이미 Decimal 개체여야 합니다.

이 메서드를 호출하기 전에 IsDBNull을 호출하여 null 값을 찾을 수 있습니다.

플랫폼

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

.NET Framework에서 모든 플래폼의 모든 버전을 지원하지는 않습니다. 지원되는 버전의 목록은 시스템 요구 사항을 참조하십시오.

버전 정보

.NET Framework

2.0, 1.1, 1.0에서 지원

참고 항목

참조

OleDbDataReader 클래스
OleDbDataReader 멤버
System.Data.OleDb 네임스페이스

기타 리소스

DataReaders 사용