SqlDataReader.GetInt32(Int32) Metoda

Definicja

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

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

Parametry

i
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ż 32-bitową liczbą całkowitą ze znakiem.

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

Dotyczy

Zobacz też