OleDbDataReader.GetInt16(Int32) Metoda

Definicja

Pobiera wartość określonej kolumny jako 16-bitową liczbę całkowitą ze znakiem.

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

Parametry

ordinal
Int32

Liczba porządkowa kolumn opartych na zerach.

Zwraca

Wartość określonej kolumny.

Implementuje

Wyjątki

Określona obsada jest nieprawidłowa.

Uwagi

Nie są wykonywane żadne konwersje; dlatego pobrane dane muszą być już 16-bitową liczbą całkowitą ze znakiem.

Wywołaj metodę IsDBNull , aby wyszukać wartości null przed wywołaniem tej metody.

Dotyczy

Zobacz też