IDataRecord.Item[String] IDataRecord.Item[String] IDataRecord.Item[String] IDataRecord.Item[String] Property

Definition

Overloads

Item[Int32] Item[Int32] Item[Int32] Item[Int32]

Gets the column located at the specified index.

Item[String] Item[String] Item[String] Item[String]

Gets the column with the specified name.

Item[Int32] Item[Int32] Item[Int32] Item[Int32]

Gets the column located at the specified index.

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

The zero-based index of the column to get.

Property Value

The column located at the specified index as an Object.

Exceptions

Item[String] Item[String] Item[String] Item[String]

Gets the column with the specified name.

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

The name of the column to find.

Property Value

The column with the specified name as an Object.

Exceptions

Remarks

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

This method is kana-width insensitive.

Applies to