SqlDataReader.GetInt64(Int32) Metoda

Definicja

Pobiera wartość określonej kolumny jako 64-bitową liczbę całkowitą podpisaną.

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

Parametry

i
Int32

Porządkowa kolumna oparta na zera.

Zwraca

Wartość określonej kolumny.

Implementuje

Wyjątki

Określona obsada jest nieprawidłowa.

Uwagi

Nie są wykonywane żadne konwersje; w związku z tym pobrane dane muszą być już 64-bitową liczbą całkowitą podpisaną.

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

Dotyczy

Zobacz też