OdbcDataReader.GetInt16(Int32) 메서드

정의

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

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

매개 변수

i
Int32

열 서수(0부터 시작)입니다.

반환

지정된 열의 값을 16비트 부호 있는 정수로 반환합니다.

구현

예외

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

설명

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

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

적용 대상

추가 정보