# C1.DataConnector.AdoNet.DbCommandWrap-3.ExecuteDbDataReaderAsync

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_DataConnector_AdoNet_DbCommandWrap_3_ExecuteDbDataReaderAsync_" data-uid="C1.DataConnector.AdoNet.DbCommandWrap`3.ExecuteDbDataReaderAsync*">ExecuteDbDataReaderAsync Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_DataConnector_AdoNet_DbCommandWrap_3_ExecuteDbDataReaderAsync_" data-uid="C1.DataConnector.AdoNet.DbCommandWrap`3.ExecuteDbDataReaderAsync*"></a>
<h4 id="C1_DataConnector_AdoNet_DbCommandWrap_3_ExecuteDbDataReaderAsync_System_Data_CommandBehavior_System_Threading_CancellationToken_" data-uid="C1.DataConnector.AdoNet.DbCommandWrap`3.ExecuteDbDataReaderAsync(System.Data.CommandBehavior,System.Threading.CancellationToken)">ExecuteDbDataReaderAsync(CommandBehavior, CancellationToken)</h4>
<div class="markdown level1 summary"><p>An asynchronous version of method ExecuteDbDataReader that executes the command text against the connection.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected override Task&lt;DbDataReader&gt; ExecuteDbDataReaderAsync(CommandBehavior behavior, CancellationToken cancellationToken)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Overrides Function ExecuteDbDataReaderAsync(behavior As CommandBehavior, cancellationToken As CancellationToken) As Task(Of DbDataReader)</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.data.commandbehavior">CommandBehavior</a></td>
      <td><span class="parametername">behavior</span></td>
      <td><p>An instance of <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.data.commandbehavior">CommandBehavior</a>.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a></td>
      <td><span class="parametername">cancellationToken</span></td>
      <td><p>The token to monitor for cancellation requests.</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.threading.tasks.task-1">Task</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.data.common.dbdatareader">DbDataReader</a>&gt;</td>
      <td></td>
    </tr>
  </tbody>
</table>
<h5 class="overrides">Overrides</h5>
<div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.data.common.dbcommand.executedbdatareaderasync">DbCommand.ExecuteDbDataReaderAsync(CommandBehavior, CancellationToken)</a></div>
</div>
