IDataRecord.GetValues(Object[]) Método
Definição
Popula uma matriz de objetos com os valores da coluna do registro atual.Populates an array of objects with the column values of the current record.
public:
int GetValues(cli::array <System::Object ^> ^ values);
public int GetValues (object[] values);
abstract member GetValues : obj[] -> int
Public Function GetValues (values As Object()) As Integer
Parâmetros
- values
- Object[]
Uma matriz de Object na qual os campos de atributo serão copiados.An array of Object to copy the attribute fields into.
Retornos
O número de instâncias de Object na matriz.The number of instances of Object in the array.
Comentários
Para a maioria dos aplicativos, o GetValues método fornece um meio eficiente para recuperar todas as colunas, em vez de recuperar cada coluna individualmente.For most applications, the GetValues method provides an efficient means for retrieving all columns, instead of retrieving each column individually.
Você pode passar uma Object matriz que contém menos do que o número de colunas contidas na linha resultante.You can pass an Object array that contains fewer than the number of columns that are contained in the resulting row. Somente a quantidade de dados que a Object matriz contém é copiada para a matriz.Only the amount of data the Object array holds is copied to the array. Você também pode passar uma Object matriz cujo comprimento é maior do que o número de colunas contidas na linha resultante.You can also pass an Object array whose length is more than the number of columns that are contained in the resulting row.