Item Property (String)
Collapse the table of content
Expand the table of content

IDataRecord.Item Property (String)

 

Gets the column with the specified name.

Namespace:   System.Data
Assembly:  System.Data (in System.Data.dll)

object this[
	string name
] { get; }

Parameters

name
Type: System.String

The name of the column to find.

Property Value

Type: System.Object

The column with the specified name as an Object.

Exception Condition
IndexOutOfRangeException

No column with the specified name was found.

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

This method is kana-width insensitive.

.NET Framework
Available since 1.1
Return to top
Show:
© 2016 Microsoft