OdbcDataReader.GetInt16(Int32) 메서드

정의

지정된 열의 값을 16비트 부속 정수로 가져옵니다.

public:
 virtual short GetInt16(int i);
public:
 override short GetInt16(int i);
public short GetInt16(int i);
public override short GetInt16(int i);
abstract member GetInt16 : int -> int16
override this.GetInt16 : int -> int16
override this.GetInt16 : int -> int16
Public Function GetInt16 (i As Integer) As Short
Public Overrides Function GetInt16 (i As Integer) As Short

매개 변수

i
Int32

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

반품

16비트 부가 정수로 지정된 열의 값입니다.

구현

예외

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

설명

변환은 ODBC 드라이버의 기본 기능에 따라 수행됩니다. 변환이 지원되지 않으면 메서드 호출이 실패합니다.

이 메서드를 호출하기 전에 null 값을 찾기 위해 호출 IsDBNull 합니다.

적용 대상

추가 정보