SqlDataRecord.Item[String] SqlDataRecord.Item[String] SqlDataRecord.Item[String] SqlDataRecord.Item[String] Property

Definition

Overloads

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

Gets the common language runtime (CLR) type value for the column specified by the column ordinal argument.

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

Gets the common language runtime (CLR) type value for the column specified by the column name argument.

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

Gets the common language runtime (CLR) type value for the column specified by the column ordinal argument.

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

Parameters

ordinal
Int32 Int32 Int32 Int32

The zero-based ordinal of the column.

Property Value

The CLR type value of the column specified by the ordinal.

Implements

Exceptions

The ordinal is less than 0 or greater than the number of columns (that is, FieldCount).

Remarks

For columns with null value, Value is returned.

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

Gets the common language runtime (CLR) type value for the column specified by the column name argument.

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

Parameters

name
String String String String

The name of the column.

Property Value

The CLR type value of the column specified by the name.

Implements

Remarks

For columns with null value, Value is returned.

Applies to