Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IDataRecord::Item Property (String^)

 

Gets the column with the specified name.

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

property Object^ default[
	String^ name
] {
	Object^ get(String^ name);
}

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:
© 2017 Microsoft