DbDataReader.GetValues(Object[]) 方法

定义

在派生类中重写时,使用当前行的列值来填充对象数组。When overridden in a derived class, populates an array of objects with the column values of the current row.

public:
 abstract int GetValues(cli::array <System::Object ^> ^ values);
public abstract int GetValues (object[] values);
abstract member GetValues : obj[] -> int
Public MustOverride Function GetValues (values As Object()) As Integer

参数

values
Object[]

要将属性列复制到的 Object 数组。An array of Object into which to copy the attribute columns.

返回

Int32

数组中 Object 的实例的数目。The number of instances of Object in the array.

实现

适用于

另请参阅