Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
获取当前行中的所有列。
Public Overrides Function GetValues(ByVal values As Object()) As Integer
public override int GetValues(object[] values)
values 保存结果集中整个行的对象数组。
数组中的对象数。
对大多数应用程序而言,GetValues 方法提供了一种有效率的检索所有列而不是分别检索每个列的方法。
您可以传递一个包含的列数比生成的行中包含的列数少的 Object 数组。只有 Object 数组保存的数据才会复制到数组中。您还可以传递长度比生成的行中包含的列数大的 Object 数组。
对于值为 NULL 的数据库列,此方法返回 DBNull。