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

SQL Anywhere 11.0.1 (中文) » SQL Anywhere 服务器 - 编程 » SQL Anywhere 数据访问 API » SQL Anywhere .NET 2.0 API 参考 » iAnywhere.Data.SQLAnywhere 命名空间 (.NET 2.0) » SADataReader 类 » GetValue 方法

 

GetValue(Int32, Int64, Int32) 方法

以对象形式返回指定列的子串值。

语法
Visual Basic

Public Function GetValue( _
   ByVal ordinal As Integer, _
   ByVal index As Long, _
   ByVal length As Integer _
) As Object
C#

public object GetValue(
   int ordinal,
   long index,
   int length
);
参数
  • ordinal   表示获取值的来源列的顺序号。编号从零开始。

  • index   要获得的子串值的索引(从零开始)。

  • length   要获得的子串值的长度。

返回值

以对象形式返回的子串值。

注释

对于值为 NULL 的数据库列,此方法返回 DBNull。

另请参见