# C1.ImportServices.ReportingService4.ReportingService2005SoapClient.BeginPrepareQuery

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_ImportServices_ReportingService4_ReportingService2005SoapClient_BeginPrepareQuery_" data-uid="C1.ImportServices.ReportingService4.ReportingService2005SoapClient.BeginPrepareQuery*">BeginPrepareQuery Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_ImportServices_ReportingService4_ReportingService2005SoapClient_BeginPrepareQuery_" data-uid="C1.ImportServices.ReportingService4.ReportingService2005SoapClient.BeginPrepareQuery*"></a>
<h4 id="C1_ImportServices_ReportingService4_ReportingService2005SoapClient_BeginPrepareQuery_C1_ImportServices_ReportingService4_BatchHeader_C1_ImportServices_ReportingService4_DataSource_C1_ImportServices_ReportingService4_DataSetDefinition_System_AsyncCallback_System_Object_" data-uid="C1.ImportServices.ReportingService4.ReportingService2005SoapClient.BeginPrepareQuery(C1.ImportServices.ReportingService4.BatchHeader,C1.ImportServices.ReportingService4.DataSource,C1.ImportServices.ReportingService4.DataSetDefinition,System.AsyncCallback,System.Object)">BeginPrepareQuery(BatchHeader, DataSource, DataSetDefinition, AsyncCallback, object)</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public IAsyncResult BeginPrepareQuery(BatchHeader BatchHeader, DataSource DataSource, DataSetDefinition DataSet, AsyncCallback callback, object asyncState)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function BeginPrepareQuery(BatchHeader As BatchHeader, DataSource As DataSource, DataSet As DataSetDefinition, callback As AsyncCallback, asyncState As Object) As IAsyncResult</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="C1.ImportServices.ReportingService4.BatchHeader.html">BatchHeader</a></td>
      <td><span class="parametername">BatchHeader</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.ImportServices.ReportingService4.DataSource.html">DataSource</a></td>
      <td><span class="parametername">DataSource</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.ImportServices.ReportingService4.DataSetDefinition.html">DataSetDefinition</a></td>
      <td><span class="parametername">DataSet</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.asynccallback">AsyncCallback</a></td>
      <td><span class="parametername">callback</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></td>
      <td><span class="parametername">asyncState</span></td>
      <td></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.iasyncresult">IAsyncResult</a></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
