Share via


SqlCeDataReader.Item Property (String)

Note: This namespace, class, or member is supported only in version 1.1 of the .NET Framework.

Gets the value of the specified column in its native format given the column name.

[C#] In C#, this property is the indexer for the SqlCeDataReader class.

  [Visual Basic]
  Overloads Public Overridable Default ReadOnly Property Item( _
   ByVal 
  name
   As String _
) As Object  Implements IDataRecord.Item
[C#]
public virtual object this[string name
] {get;}
[C++]
public: __property virtual Object* get_Item(String* name
);
[JScript]
returnValue = SqlCeDataReaderObject.Item(name);
-or-
returnValue = SqlCeDataReaderObject(name);

[JScript] In JScript, you can use the default indexed properties defined by a type, but you cannot explicitly define your own. However, specifying the expando attribute on a class automatically provides a default indexed property whose type is Object and whose index type is String.

Arguments [JScript]

  • name
    The column name.

Parameters [Visual Basic, C#, C++]

  • name
    The column name.

Property Value

The value of the specified column in its native format.

Implements

IDataRecord.Item

Remarks

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

This method is kana-width insensitive.

Requirements

.NET Framework Security:

See Also

SqlCeDataReader Class | SqlCeDataReader Members | System.Data.SqlServerCe Namespace | SqlCeDataReader.Item Overload List

Syntax based on .NET Framework version 1.1.
Documentation version 1.1.1.

Send comments on this topic.

© Microsoft Corporation. All rights reserved.