SqlDataReader.GetBoolean(Int32) Metoda

Definicja

Pobiera wartość określonej kolumny jako wartość logiczną.

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

Parametry

i
Int32

Porządkowa kolumna oparta na zera.

Zwraca

Boolean

Wartość 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ż wartością logiczną lub jest generowany wyjątek.

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

Dotyczy

Zobacz też