Uredi

Deli z drugimi prek


OdbcDataReader.Item[] Property

Definition

Gets the value of a column in its native format.

Overloads

Item[Int32]

Gets the value of the specified column in its native format given the column ordinal.

Item[String]

Gets the value of the specified column in its native format given the column name.

Item[Int32]

Source:
OdbcDataReader.cs
Source:
OdbcDataReader.cs

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

Parameters

i
Int32

The column ordinal.

Property Value

The value of the specified column in its native format.

Implements

Exceptions

The index passed was outside the range of 0 through FieldCount.

See also

Applies to

Item[String]

Source:
OdbcDataReader.cs
Source:
OdbcDataReader.cs

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

Parameters

value
String

The column name.

Property Value

The value of the specified column in its native format.

Implements

Exceptions

No column with the specified name was found.

Remarks

A case-sensitive lookup is performed first. If it fails, a second case-insensitive search is made.

This method is kana-width insensitive.

See also

Applies to