OdbcDataReader.Item[] Propriedade

Definição

Obtém o valor de uma coluna em seu formato nativo.Gets the value of a column in its native format.

Sobrecargas

Item[Int32]

Obtém o valor da coluna especificada em seu formato nativo de acordo com o ordinal da coluna.Gets the value of the specified column in its native format given the column ordinal.

Item[String]

Obtém o valor da coluna especificada em seu formato nativo de acordo com o nome da coluna.Gets the value of the specified column in its native format given the column name.

Item[Int32]

Obtém o valor da coluna especificada em seu formato nativo de acordo com o ordinal da coluna.Gets the value of the specified column in its native format given the column ordinal.

public:
 virtual property System::Object ^ default[int] { System::Object ^ get(int i); };
public:
 property System::Object ^ default[int] { System::Object ^ get(int i); };
public override object this[int i] { get; }
public object this[int i] { get; }
member this.Item(int) : obj
Default Public Overrides ReadOnly Property Item(i As Integer) As Object
Default Public ReadOnly Property Item(i As Integer) As Object

Parâmetros

i
Int32

O ordinal da coluna.The column ordinal.

Valor da propriedade

Object

O valor da coluna especificada em seu formato nativo.The value of the specified column in its native format.

Implementações

Exceções

O índice passado estava fora do intervalo de 0 a FieldCount.The index passed was outside the range of 0 through FieldCount.

Aplica-se a

Item[String]

Obtém o valor da coluna especificada em seu formato nativo de acordo com o nome da coluna.Gets the value of the specified column in its native format given the column name.

public:
 virtual property System::Object ^ default[System::String ^] { System::Object ^ get(System::String ^ value); };
public:
 property System::Object ^ default[System::String ^] { System::Object ^ get(System::String ^ value); };
public override object this[string value] { get; }
public object this[string value] { get; }
member this.Item(string) : obj
Default Public Overrides ReadOnly Property Item(value As String) As Object
Default Public ReadOnly Property Item(value As String) As Object

Parâmetros

value
String

O nome da coluna.The column name.

Valor da propriedade

Object

O valor da coluna especificada em seu formato nativo.The value of the specified column in its native format.

Implementações

Exceções

Nenhuma coluna com o nome especificado foi encontrada.No column with the specified name was found.

Comentários

Uma pesquisa com diferenciação de maiúsculas e minúsculas é executada primeiro.A case-sensitive lookup is performed first. Se falhar, uma segunda pesquisa que não diferencia maiúsculas de minúsculas é feita.If it fails, a second case-insensitive search is made.

Este método não diferencia largura kana.This method is kana-width insensitive.

Aplica-se a