Редагувати

Поділитися через


IDataRecord.Item[] Property

Definition

Gets the specified column.

Overloads

Item[Int32]

Gets the column located at the specified index.

Item[String]

Gets the column with the specified name.

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

The zero-based index of the column to get.

Property Value

The column located at the specified index as an Object.

Exceptions

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

Applies to

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

The name of the column to find.

Property Value

The column with the specified name as an Object.

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.

Applies to