다음을 통해 공유


SqlDataRecord.GetSqlBytes(Int32) 메서드

정의

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

public:
 virtual System::Data::SqlTypes::SqlBytes ^ GetSqlBytes(int ordinal);
public virtual System.Data.SqlTypes.SqlBytes GetSqlBytes (int ordinal);
abstract member GetSqlBytes : int -> System.Data.SqlTypes.SqlBytes
override this.GetSqlBytes : int -> System.Data.SqlTypes.SqlBytes
Public Overridable Function GetSqlBytes (ordinal As Integer) As SqlBytes

매개 변수

ordinal
Int32

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

반환

SqlBytes로서의 열 값입니다.

예외

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

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

적용 대상