Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 (中文) » UltraLite - .NET 编程 » UltraLite .NET 2.0 API 参考 » ULDataReader 类 » Item 属性

 

Item(Int32) 属性

返回以本地格式表示的指定列的值。在 C# 中,此属性是 ULDataReader 类的索引器。

语法
Visual Basic
Public Overrides Default Readonly Property Item( _
   ByVal columnID As Integer _
) As Object
C#
public override object this[ 
   int columnID
] { get;}
参数
  • columnID   列的 ID 号。值必须在 [0,ULDataReader.FieldCount-1] 范围内。游标中第一列的 ID 值为 0。

属性值

最适合于此列的 .NET 类型的列值;如果列为 NULL,则为 DBNull。

注释

此方法在功能上与 ULDataReader.GetValue(int) 方法相同。

另请参见