SqlCeDataReader.Item 属性 (String)

在给定列名称的情况下,获取指定列的以本机格式表示的值。

命名空间: System.Data.SqlServerCe
程序集: System.Data.SqlServerCe(在 system.data.sqlserverce.dll 中)

语法

声明
Public Overrides ReadOnly Default Property Item ( _
    name As String _
) As Object
用法
Dim instance As SqlCeDataReader
Dim name As String
Dim value As Object

value = instance(name)
public override Object this [
    string name
] { get; }
public:
virtual property Object^ default [String^] {
    Object^ get (String^ name) override;
}
/** @property */
public Object get_Item (String name)
不适用。

参数

  • name
    列名称。

属性值

指定列的以本机格式表示的值。

备注

首先执行区分大小写的查找。如果失败,则进行另一次不区分大小写的搜索。

此方法不区分假名宽度。

平台

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

Windows Vista、Microsoft Windows XP SP2 和 Windows Server 2003 SP1 支持 Microsoft .NET Framework 3.0。

版本信息

.NET Framework

受以下版本支持:3.0

.NET Compact Framework

受以下版本支持:2.0、1.0

请参见

参考

SqlCeDataReader 类
SqlCeDataReader 成员
System.Data.SqlServerCe 命名空间