SqlDataRecord.GetChar(Int32) Método

Definição

Obtém o valor para a coluna especificada pelo ordinal como um Char.Gets the value for the column specified by the ordinal as a Char.

public:
 virtual char GetChar(int ordinal);
public virtual char GetChar (int ordinal);
abstract member GetChar : int -> char
override this.GetChar : int -> char
Public Overridable Function GetChar (ordinal As Integer) As Char

Parâmetros

ordinal
Int32

O ordinal com base em zero da coluna.The zero-based ordinal of the column.

Retornos

Char

O valor da coluna como um Char.The column value as a Char.

Implementações

Exceções

O ordinal é menor que 0 ou maior que o número de colunas (ou seja, FieldCount).The ordinal is less than 0 or greater than the number of columns (that is, FieldCount).

A coluna especificada por ordinal é nula.The column specified by ordinal is null.

Há tipos incompatíveis.There is a type mismatch.

Aplica-se a