OdbcDataReader.GetBoolean(Int32) Método

Definição

Obtém o valor da coluna especificada como um booliano.Gets the value of the specified column as a Boolean.

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

Parâmetros

i
Int32

O ordinal da coluna baseado em zero.The zero-based column ordinal.

Retornos

Boolean

Um booliano que é o valor da coluna.A Boolean that is the value of the column.

Implementações

Exceções

A conversão especificada não é válida.The specified cast is not valid.

Comentários

As conversões são executadas com base nos recursos subjacentes do driver ODBC.Conversions are performed based on the underlying capabilities of the ODBC driver. Se não houver suporte para a conversão, a chamada do método falhará.If the conversion is not supported then the method call will fail.

Chame IsDBNull para procurar valores nulos antes de chamar este método.Call IsDBNull to look for null values before calling this method.

Aplica-se a