# C1.DataConnector.AdoNet.C1DataReader.GetValues

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_DataConnector_AdoNet_C1DataReader_GetValues_" data-uid="C1.DataConnector.AdoNet.C1DataReader.GetValues*">GetValues Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_DataConnector_AdoNet_C1DataReader_GetValues_" data-uid="C1.DataConnector.AdoNet.C1DataReader.GetValues*"></a>
<h4 id="C1_DataConnector_AdoNet_C1DataReader_GetValues_System_Object___" data-uid="C1.DataConnector.AdoNet.C1DataReader.GetValues(System.Object[])">GetValues(object[])</h4>
<div class="markdown level1 summary"><p>Populates an array of objects with the column values of the current row.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public override int GetValues(object[] values)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overrides Function GetValues(values As Object()) As Integer</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>[]</td>
      <td><span class="parametername">values</span></td>
      <td><p>An array of <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a> into which to copy the attribute columns.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><p>The number of instances of System.Object in the array.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="overrides">Overrides</h5>
<div><a class="xref" href="../C1.DataConnector/C1.DataConnector.C1DataReaderBase.GetValues.html#C1_DataConnector_C1DataReaderBase_GetValues_System_Object___">C1DataReaderBase.GetValues(object[])</a></div>
</div>
