Share via


SqlDataRecord.GetByte(Int32) 메서드

정의

서수로 지정된 열의 값을 Byte로 가져옵니다.

public:
 virtual System::Byte GetByte(int ordinal);
public virtual byte GetByte (int ordinal);
abstract member GetByte : int -> byte
override this.GetByte : int -> byte
Public Overridable Function GetByte (ordinal As Integer) As Byte

매개 변수

ordinal
Int32

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

반환

Byte로서의 열 값입니다.

구현

예외

ordinal이 0보다 작거나 열 수(즉, FieldCount)보다 큰 경우

ordinal로 지정된 열이 null인 경우

형식이 일치하지 않습니다.

적용 대상