Прочетете на английски Редактиране

Споделяне чрез


DbDataRecord.Item[] Property

Definition

Indicates that value from a column in its native format. This property is read-only.

Overloads

Item[Int32]

Indicates the value at the specified column in its native format given the column ordinal. This property is read-only.

Item[String]

Indicates the value at the specified column in its native format given the column name. This property is read-only.

Item[Int32]

Source:
DbDataRecord.cs
Source:
DbDataRecord.cs
Source:
DbDataRecord.cs

Indicates the value at the specified column in its native format given the column ordinal. This property is read-only.

C#
public abstract object this[int i] { get; }
C#
public object this[int i] { get; }

Parameters

i
Int32

The column ordinal.

Property Value

The value at the specified column in its native format.

Implements

See also

Applies to

.NET 10 и други версии
Продукт Версии
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

Item[String]

Source:
DbDataRecord.cs
Source:
DbDataRecord.cs
Source:
DbDataRecord.cs

Indicates the value at the specified column in its native format given the column name. This property is read-only.

C#
public abstract object this[string name] { get; }
C#
public object this[string name] { get; }

Parameters

name
String

The column name.

Property Value

The value at the specified column in its native format.

Implements

See also

Applies to

.NET 10 и други версии
Продукт Версии
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1