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 用于保存整个行的 System.Objects 数组。
检索的列值的数目。如果数组长度超过列数 (ULDataReader.FieldCount),则仅检索 FieldCount 项,并且数组的剩余部分保持不变。
ArgumentNullException values 数组为 NULL 或长度为零。
ULException 类 发生 SQL 错误。
对大多数应用程序而言,GetValues 方法提供了一种有效率的检索所有列而不是分别检索每个列的方法。
您可以传递一个包含的列数比生成的行中包含的列数少的 System.Object 数组。只有 System.Object 数组保存的数据才会复制到数组中。您还可以传递长度比生成的行中包含的列数大的 System.Object 数组。
对于值为 NULL 的数据库列,此方法返回 DBNull。对于其它列,它返回本机格式的列值。